Skip to content

Commit

Permalink
feat: update claimable amount
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Jul 3, 2024
1 parent 7a0db75 commit 0806a18
Showing 1 changed file with 15 additions and 35 deletions.
50 changes: 15 additions & 35 deletions libs/prime/restake/src/views/ClaimView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,43 +134,23 @@ const ClaimCard = ({ request, ...rest }: ClaimCardProps) => {
/>
</Stack>
<Divider orientation="vertical" flexItem />
<Stack direction="row" justifyContent="space-around" width={0.5} px={2}>
<Stack alignItems="flex-start">
<Typography variant="subtitle2" color="text.secondary">
{intl.formatMessage({ defaultMessage: 'Available' })}
</Typography>
<Stack direction="row" alignItems="center" spacing={0.5}>
<TokenIcon token={tokens.mainnet.OETH} />
<Typography fontSize={16} fontWeight="medium">
{formatAmount(available)}
</Typography>
</Stack>
<LoadingLabel
variant="subtitle2"
color="text.secondary"
isLoading={isPriceLoading}
>
{formatCurrency(availableConverted)}
</LoadingLabel>
</Stack>
<Stack alignItems="flex-start">
<Typography variant="subtitle2" color="text.secondary">
{intl.formatMessage({ defaultMessage: 'Pending' })}
<Stack alignItems="flex-start" px={2} spacing={0.25}>
<Typography variant="subtitle2" color="text.secondary">
{intl.formatMessage({ defaultMessage: 'Claimable amount' })}
</Typography>
<Stack direction="row" alignItems="center" spacing={0.5}>
<TokenIcon token={tokens.mainnet.OETH} />
<Typography fontSize={16} fontWeight="medium">
{formatAmount(pending)}
</Typography>
<Stack direction="row" alignItems="center" spacing={0.5}>
<TokenIcon token={tokens.mainnet.OETH} />
<Typography fontSize={16} fontWeight="medium">
{formatAmount(pending)}
</Typography>
</Stack>
<LoadingLabel
variant="subtitle2"
color="text.secondary"
isLoading={isPriceLoading}
>
{formatCurrency(pendingConverted)}
</LoadingLabel>
</Stack>
<LoadingLabel
variant="subtitle2"
color="text.secondary"
isLoading={isPriceLoading}
>
{formatCurrency(pendingConverted)}
</LoadingLabel>
</Stack>
</Stack>
<TxButton
Expand Down

0 comments on commit 0806a18

Please sign in to comment.