feat(validators-menu-with-price): remove old and use new currency

This commit is contained in:
RadoslavDimchev 2024-02-29 22:23:27 +02:00 committed by Emil Ivanichkov
parent ce998a2ca9
commit 2107b02b7b

View File

@ -4,9 +4,9 @@ import { Stack, XStack, YStack, useMedia } from 'tamagui'
import { useSelector } from 'react-redux' import { useSelector } from 'react-redux'
import { CURRENCIES, ETH_PER_VALIDATOR } from '../../constants' import { CURRENCIES, ETH_PER_VALIDATOR } from '../../constants'
import CurrencyDropdown from './CurrencyDropdown'
import ResponsiveStack from './ResponsiveStack'
import { RootState } from '../../redux/store' import { RootState } from '../../redux/store'
import ResponsiveStack from './ResponsiveStack'
import CurrencyDropdown from './CurrencyDropdown'
type ValidatorsMenuWithPriceProps = { type ValidatorsMenuWithPriceProps = {
validatorCount: number validatorCount: number
@ -64,17 +64,7 @@ const ValidatorsMenuWithPrice = ({
</Text> </Text>
</Stack> </Stack>
</YStack> </YStack>
<YStack space={'$2'}> <CurrencyDropdown totalPrice={totalPrice} />
<XStack style={{ justifyContent: 'space-between' }}>
<Text size={15} weight={'semibold'}>
{currency}
</Text>
<CurrencyDropdown />
</XStack>
<Text size={27} weight={'semibold'}>
{totalPrice.toFixed(2)} {currency}
</Text>
</YStack>
</XStack> </XStack>
</ResponsiveStack> </ResponsiveStack>
) )