From fee5c20fe28c78b8e6a42bf07f9393dfaf46fd09 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Thu, 29 Feb 2024 17:09:47 +0100 Subject: [PATCH] removed offerlist from family home page --- src/components/Home/FamilyDash.jsx | 9 +++++---- src/components/Home/index.jsx | 8 +++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/Home/FamilyDash.jsx b/src/components/Home/FamilyDash.jsx index 2eee32d..e8e460a 100644 --- a/src/components/Home/FamilyDash.jsx +++ b/src/components/Home/FamilyDash.jsx @@ -6,7 +6,7 @@ import FamilyActiveLSlde from "./FamilyActiveLSlde"; import { useDispatch, useSelector } from "react-redux"; import { tableReload } from "../../store/TableReloads"; -export default function FamilyDash({ familyOffers, MyActiveJobList }) { +export default function FamilyDash({ MyActiveJobList, serverImg }) { // console.log("PROPS IN FAMILY DASH->", familyOffers?.result_list); const dispatch = useDispatch(); @@ -131,18 +131,19 @@ export default function FamilyDash({ familyOffers, MyActiveJobList }) { } - {familyOffers?.result_list && familyOffers?.result_list.length > 0 && ( + {/* {familyOffers?.result_list && familyOffers?.result_list.length > 0 && ( - )} + )} */} + {trending && trending.length > 0 && ( )} diff --git a/src/components/Home/index.jsx b/src/components/Home/index.jsx index a8515ec..c0d4a2a 100644 --- a/src/components/Home/index.jsx +++ b/src/components/Home/index.jsx @@ -60,8 +60,9 @@ export default function Home(props) { const fetchData = async () => { await Promise.all([getHomeDate(), getMyOffersList()]); }; - - fetchData(); + if(userDetails?.account_type == 'FULL'){ + fetchData(); + } }, []); useEffect(() => { @@ -75,7 +76,8 @@ export default function Home(props) { ) : userDetails && userDetails?.account_type == "FULL" ? (