feat: style and code structure small changes

This commit is contained in:
RadoslavDimchev 2023-09-27 18:28:17 +03:00
parent cf6aa02f8d
commit 86dcb01def
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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} />
))}