Skip to content

Commit

Permalink
refactor: modified stacking.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shamim-io authored and He1DAr committed May 31, 2023
1 parent d4b15c1 commit 149244f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/components/stacking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export const StackingPercentage = ({ balances, address }: any) => {
const isStacking = unlockBlock > currentBlock;

return (
<Box px="20px">
<Stack spacing="8px" py="24px">
<Box mt="15px">
<Caption>Stacking progress</Caption>
<Stack spacing="8px" py="10px">
{isStacking ? (
<Box mx="auto" size="64px">
<PercentageCircle percentage={stackingPercentage} />
Expand All @@ -63,15 +64,8 @@ export const StackingPercentage = ({ balances, address }: any) => {
<StxIcon color={'bg'} size="24px" />
</Circle>
)}
<Caption mx="auto">Stacking progress</Caption>
{isStacking ? (
<Box mt="4px">
<Flex position="relative" mb="12px" justifyContent="center" alignItems="center">
<Title fontSize={2} fontWeight={500} color={'textTitle'}>
{stackingPercentage.toLocaleString(undefined, { maximumFractionDigits: 2 })}%
completed
</Title>
</Flex>
<Box textAlign="center">
<Caption mb="12px">
~{blocksUntilUnlocked.toLocaleString(undefined, { maximumFractionDigits: 2 })}{' '}
Expand Down

0 comments on commit 149244f

Please sign in to comment.