family jome page bug fix

This commit is contained in:
victorAnumudu
2024-11-28 11:19:02 +01:00
parent 883a98951a
commit 58a75a1c89
+12 -10
View File
@@ -24,9 +24,6 @@ export default function Home(props) {
return ( return (
<Layout> <Layout>
<div className="w-full"> <div className="w-full">
{commonHeadBanner.loading ?
<LoadingSpinner height='h-48' size='16' />
:
<> <>
{userDetails && userDetails?.account_type == "FAMILY" ? ( {userDetails && userDetails?.account_type == "FAMILY" ? (
<FamilyDash <FamilyDash
@@ -35,19 +32,24 @@ export default function Home(props) {
serverImg = {userDetails?.session_image_server} serverImg = {userDetails?.session_image_server}
/> />
) : userDetails && userDetails?.account_type == "FULL" ? ( ) : userDetails && userDetails?.account_type == "FULL" ? (
<FullAccountDash <>
bannerList={commonHeadBanner?.data?.result_list} {commonHeadBanner.loading ?
dashTypes={commonHeadBanner?.data?.home_dash_type} <LoadingSpinner height='h-48' size='16' />
offersList={commonHeadBanner?.data?.offers_list} :
imageServer={commonHeadBanner?.data?.session_image_server} <FullAccountDash
/> bannerList={commonHeadBanner?.data?.result_list}
dashTypes={commonHeadBanner?.data?.home_dash_type}
offersList={commonHeadBanner?.data?.offers_list}
imageServer={commonHeadBanner?.data?.session_image_server}
/>
}
</>
) : ( ) : (
<div> <div>
You are not logged in or your account type is not supported. You are not logged in or your account type is not supported.
</div> </div>
)} )}
</> </>
}
</div> </div>
</Layout> </Layout>
); );