Skip to content

Commit

Permalink
Add skeleton for porfolio value sum
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunusabdul38 committed Nov 14, 2024
1 parent 321c166 commit 8a63b9f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions components/UI/profileCard/profileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const ProfileCard: FunctionComponent<ProfileCardProps> = ({
{identity.domain?.domain || 'Unknown Domain'}
</Typography>
<div className={styles.address_div}>
<div className='flex items-center gap-2'>
<div className='flex items-center gap-2 h-6'>
<Loading isLoading={totalBalance === null}>
<Typography
type={TEXT_TYPE.BODY_SMALL}
Expand All @@ -185,13 +185,15 @@ const ProfileCard: FunctionComponent<ProfileCardProps> = ({
/>
)}
</Typography>
<div
onClick={() => setHidePortfolio(!hidePortfolio)}
className='cursor-pointer'
>
{hidePortfolio ? <EyeIconSlashed /> : <EyeIcon />}
</div>
</Loading>
<Loading isLoading={totalBalance === null} loadingType='spinner'>
<div
onClick={() => setHidePortfolio(!hidePortfolio)}
className='cursor-pointer'
>
{hidePortfolio ? <EyeIconSlashed /> : <EyeIcon />}
</div>
</Loading>
</div>
</div>
<div className='flex sm:hidden justify-center py-4'>
Expand Down

0 comments on commit 8a63b9f

Please sign in to comment.