From 3cd8b6e57447051aa8845dcd45a538c6aa1435d5 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 22 Mar 2024 12:45:34 +0100 Subject: [PATCH] added link to family page --- src/components/FamilyAcc/FamilyManage.jsx | 39 ++++++++++++++++++++-- src/components/Helpers/DataIteration.jsx | 2 +- src/components/MarketPlace/MainSection.jsx | 4 +-- 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/src/components/FamilyAcc/FamilyManage.jsx b/src/components/FamilyAcc/FamilyManage.jsx index 0321448..aa4780f 100644 --- a/src/components/FamilyAcc/FamilyManage.jsx +++ b/src/components/FamilyAcc/FamilyManage.jsx @@ -1,8 +1,9 @@ import React, { useEffect, useState } from "react"; -import { useLocation, useNavigate } from "react-router-dom"; +import { Link, useLocation, useNavigate } from "react-router-dom"; import Layout from "../Partials/Layout"; import LoadingSpinner from "../Spinners/LoadingSpinner"; import FamilyManageTabs from "./FamilyManageTabs"; +import CustomBreadcrumb from "../Breadcrumb/CustomBreadcrumb"; export default function FamilyManage() { const [selectTab, setValue] = useState("today"); @@ -34,7 +35,7 @@ export default function FamilyManage() {
{/* heading */} -
+ {/*

+
*/} +
+
+ +
+ + + + + + Family +
diff --git a/src/components/Helpers/DataIteration.jsx b/src/components/Helpers/DataIteration.jsx index 422ac89..688e5f3 100644 --- a/src/components/Helpers/DataIteration.jsx +++ b/src/components/Helpers/DataIteration.jsx @@ -7,7 +7,7 @@ function DataIteration(props) { {datas && datas?.length >= endLength && datas?.slice(startLength, endLength) - .map((value) => children({ datas: value }))} + .map((value, index) => children({ datas: value, index }))} ); } diff --git a/src/components/MarketPlace/MainSection.jsx b/src/components/MarketPlace/MainSection.jsx index 4d76c7b..46d74bb 100644 --- a/src/components/MarketPlace/MainSection.jsx +++ b/src/components/MarketPlace/MainSection.jsx @@ -109,8 +109,8 @@ export default function MainSection({ startLength={process.env.REACT_APP_ZERO_STATE} endLength={products?.length} > - {({ datas }) => ( -
+ {({ datas, index }) => ( +