mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-03 15:13:38 +00:00
feat: fixed and separate total price
This commit is contained in:
parent
c701635942
commit
9c7e65a210
@ -18,6 +18,7 @@ const Validators = ({
|
||||
changeValidatorCountHandler,
|
||||
}: ValidatorsProps) => {
|
||||
const [currency, setCurrency] = useState(CURRENCIES[0])
|
||||
const totalPrice = (validatorCount * currency.price).toFixed(2)
|
||||
|
||||
return (
|
||||
<XStack justifyContent={'space-between'} width={'80%'}>
|
||||
@ -62,7 +63,7 @@ const Validators = ({
|
||||
</XStack>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{currency.symbol}
|
||||
{validatorCount * currency.price} {currency.name}
|
||||
{totalPrice} {currency.name}
|
||||
</Text>
|
||||
</YStack>
|
||||
</XStack>
|
||||
|
Loading…
x
Reference in New Issue
Block a user