virtual card display and banner and popout fixed

This commit was merged in pull request #838.
This commit is contained in:
victorAnumudu
2024-11-02 20:24:15 +01:00
parent dd4239312d
commit 11e356cda6
11 changed files with 763 additions and 40 deletions
+33 -2
View File
@@ -61,7 +61,7 @@ export default function Home(props) {
return (
<Layout>
{Object.keys(commonHeadBanner).length < 1 ?
{/* {Object.keys(commonHeadBanner).length < 1 ?
<LoadingSpinner height='h-48' size='16' />
:
<div className="w-full">
@@ -88,7 +88,38 @@ export default function Home(props) {
</div>
)}
</div>
}
} */}
<div className="w-full">
{userDetails && userDetails?.account_type == "FAMILY" ? (
<FamilyDash
account={userDetails}
commonHeadData={props.bannerList}
// familyOffers={MyOffersList?.data}
serverImg = {userDetails?.session_image_server}
// MyActiveJobList={MyActiveJobList?.data}
/>
) : userDetails && userDetails?.account_type == "FULL" ? (
<>
{Object.keys(commonHeadBanner).length < 1 ?
<LoadingSpinner height='h-48' size='16' />
:
<FullAccountDash
bannerList={props.bannerList}
dashTypes={props.dashTypes}
// offersList={MyOffersList}
// MyActiveJobList={MyActiveJobList}
offersList={props.offersList}
imageServer={props.imageServer}
/>
}
</>
) : (
<div>
You are not logged in or your account type is not supported.
</div>
)}
</div>
</Layout>
);
}