Moved Offer Table to Dash

This commit was merged in pull request #233.
This commit is contained in:
2023-07-02 01:34:27 +01:00
parent 1e2219fb00
commit 93d9afa417
7 changed files with 256 additions and 60 deletions
+15 -18
View File
@@ -3,25 +3,22 @@ import datas from "../../data/product_data.json";
import TopSellerTopBuyerSliderSection from "./TopSellerTopBuyerSliderSection";
import CommonHead from "../UserHeader/CommonHead";
import FamilyActiveLSlde from "./FamilyActiveLSlde";
import OverviewSection from "../ActiveBids/OverviewSection";
import ParentWaiting from "../MyPendingJobs/ParentWaiting";
import MyOffersFamilyTable from "../MyTasks/MyOffersFamilyTable";
export default function FamilyDash(props) {
console.log("PROPS IN FAMILY DASH->", props);
console.log("PROPS IN FAMILY DASH->",props);
const trending = datas.datas;
return (
<div>
<div className="home-page-wrapper">
<CommonHead
commonHeadData={props.commonHeadData}
/>
<FamilyActiveLSlde trending={trending} className="mb-10" />
{/*<TopSellerTopBuyerSliderSection className="mb-10" />*/}
<ParentWaiting className="mb-10" />
</div>
</div>
);
}
const trending = datas.datas;
return (
<div>
<div className="home-page-wrapper">
<CommonHead commonHeadData={props.commonHeadData} />
<MyOffersFamilyTable MyActiveOffersList={trending} className="mb-10" />
<FamilyActiveLSlde trending={trending} className="mb-10" />
{/*<TopSellerTopBuyerSliderSection className="mb-10" />*/}
<ParentWaiting className="mb-10" />
</div>
</div>
);
}
+7 -4
View File
@@ -39,14 +39,17 @@ export default function Home(props) {
return (
<Layout>
<div className="home-page-wrapper">
{userDetails && userDetails?.account_type == "FAMILY" && (
<FamilyDash commonHeadData={props.bannerList} />
)}
{userDetails && userDetails?.account_type == "FULL" && (
{userDetails && userDetails?.account_type == "FAMILY" ? (
<FamilyDash account={userDetails} commonHeadData={props.bannerList} />
) : userDetails && userDetails?.account_type == "FULL" ? (
<FullAccountDash
nextDueTask={nextDueTask}
bannerList={props.bannerList}
/>
) : (
<div>
You are not logged in or your account type is not supported.
</div>
)}
</div>
</Layout>