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