mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-13 03:46:39 +00:00
feat: style and code structure small changes
This commit is contained in:
parent
cf6aa02f8d
commit
86dcb01def
@ -19,12 +19,12 @@ const ValidatorsMenuWithPrice = ({
|
||||
}: ValidatorsMenuWithPriceProps) => {
|
||||
const [currency, setCurrency] = useState(CURRENCIES[0])
|
||||
|
||||
const totalPrice = (validatorCount * currency.price).toFixed(2)
|
||||
|
||||
const changeCurrency = (currency: (typeof CURRENCIES)[0]) => {
|
||||
setCurrency(currency)
|
||||
}
|
||||
|
||||
const totalPrice = validatorCount * currency.price
|
||||
|
||||
return (
|
||||
<XStack justifyContent={'space-between'} width={'80%'}>
|
||||
<Stack space={'$2'}>
|
||||
@ -61,7 +61,7 @@ const ValidatorsMenuWithPrice = ({
|
||||
</XStack>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{currency.symbol}
|
||||
{totalPrice} {currency.name}
|
||||
{totalPrice.toFixed(2)} {currency.name}
|
||||
</Text>
|
||||
</YStack>
|
||||
</XStack>
|
||||
|
@ -46,7 +46,7 @@ const Deposit = () => {
|
||||
label={DEPOSIT_SUBTITLE}
|
||||
/>
|
||||
)}
|
||||
<DividerLine />
|
||||
<DividerLine style={{ marginTop: '15px' }} />
|
||||
{Array.from({ length: validatorCount }).map((_, index) => (
|
||||
<ValidatorRequest key={index} number={index + 1} />
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user