Skip to content

Commit

Permalink
Update amount display on claim modal to match rewards list (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit authored Sep 10, 2024
1 parent 285e55e commit 503d41c
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions liquidity/ui/src/components/Rewards/RewardsModal.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import { CheckIcon } from '@chakra-ui/icons';
import {
ModalContent,
ModalBody,
Modal,
Text,
Flex,
ModalOverlay,
CircularProgress,
Link,
Button,
CircularProgress,
Divider,
Flex,
Link,
Modal,
ModalBody,
ModalContent,
ModalOverlay,
Text,
} from '@chakra-ui/react';
import { useEffect, useState } from 'react';
import { Amount } from '@snx-v3/Amount';
import { etherscanLink } from '@snx-v3/etherscanLink';
import { useNetwork } from '@snx-v3/useBlockchain';
import { WithdrawIncrease } from '@snx-v3/WithdrawIncrease';
import { wei } from '@synthetixio/wei';
import { useEffect, useState } from 'react';

interface RewardsModalInterface {
collateralSymbol?: string;
Expand Down Expand Up @@ -99,7 +101,11 @@ export const RewardsModal = ({
ml={2}
>
<Text fontSize="14px" fontWeight={700} lineHeight="20px" color="white">
Claiming {amount ? amount : ''} {collateralSymbol ? collateralSymbol : ''}
<Amount
value={wei(amount)}
prefix="Claiming "
suffix={collateralSymbol ? ` ${collateralSymbol}` : undefined}
/>
</Text>
<Text fontSize="12px" lineHeight="16px" color="gray.500">
Claim your rewards
Expand Down

0 comments on commit 503d41c

Please sign in to comment.