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
1 changed files with 3 additions and 13 deletions

View File

@ -4,9 +4,9 @@ import { Stack, XStack, YStack, useMedia } from 'tamagui'
import { useSelector } from 'react-redux'
import { CURRENCIES, ETH_PER_VALIDATOR } from '../../constants'
import CurrencyDropdown from './CurrencyDropdown'
import ResponsiveStack from './ResponsiveStack'
import { RootState } from '../../redux/store'
import ResponsiveStack from './ResponsiveStack'
import CurrencyDropdown from './CurrencyDropdown'
type ValidatorsMenuWithPriceProps = {
validatorCount: number
@ -64,17 +64,7 @@ const ValidatorsMenuWithPrice = ({
</Text>
</Stack>
</YStack>
<YStack space={'$2'}>
<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>
<CurrencyDropdown totalPrice={totalPrice} />
</XStack>
</ResponsiveStack>
)