displays offerlist if it exist on home page

This commit was merged in pull request #428.
This commit is contained in:
victorAnumudu
2023-09-26 12:42:16 +01:00
parent 47c9e1bb6e
commit 594d2a4224
2 changed files with 17 additions and 4 deletions
+12 -1
View File
@@ -8,9 +8,11 @@ import { useSelector } from "react-redux";
// import TopSellerTopBuyerSliderSection from "./TopSellerTopBuyerSliderSection";
//import UpdateTable from "./UpdateTable";
import HomeActivities from "./HomeActivities";
import MyOffersTable from "../MyTasks/MyOffersTable";
export default function FullAccountDash(props) {
console.log("PROPS IN HOME->", props);
const { userDetails } = useSelector((state) => state?.userDetails);
return (
@@ -22,7 +24,16 @@ export default function FullAccountDash(props) {
bannerList={props.bannerList}
nextDueTask={props.nextDueTask}
/>
<HomeActivities className="mb-10" />
{props.offersList?.data?.result_list?.length ?
<MyOffersTable
MyActiveOffersList={props.offersList?.data}
className="mb-10"
/>
: !props.offersList?.loading ?
<HomeActivities className="mb-10" />
:
null
}
{/*<UpdateTable className="mb-10"/>*/}
{/*<SellHistoryMarketVisitorAnalytic className="mb-10"/>*/}
{/*<TopSellerTopBuyerSliderSection className="mb-10" />*/}