diff --git a/src/components/General/ValidatorsMenuWithPrice.tsx b/src/components/General/ValidatorsMenuWithPrice.tsx index 3fe9eb59..ce4e58ce 100644 --- a/src/components/General/ValidatorsMenuWithPrice.tsx +++ b/src/components/General/ValidatorsMenuWithPrice.tsx @@ -1,10 +1,11 @@ import { useState } from 'react' import { Input, Text } from '@status-im/components' import { AddIcon } from '@status-im/icons' -import { Stack, XStack, YStack } from 'tamagui' +import { Stack, XStack, YStack, useMedia } from 'tamagui' import { CURRENCIES, ETH_PER_VALIDATOR } from '../../constants' import CurrencyDropdown from './CurrencyDropdown' +import ResponsiveStack from './ResponsiveStack' type ValidatorsMenuWithPriceProps = { validatorCount: number @@ -20,6 +21,7 @@ const ValidatorsMenuWithPrice = ({ label, }: ValidatorsMenuWithPriceProps) => { const [currency, setCurrency] = useState(Object.keys(CURRENCIES)[0] as CurrencyType) + const media = useMedia() const changeCurrency = (currency: CurrencyType) => { if (CURRENCIES[currency]) { @@ -31,7 +33,11 @@ const ValidatorsMenuWithPrice = ({ const totalPrice = totalETH * CURRENCIES[currency as keyof typeof CURRENCIES] return ( - + {label} @@ -68,7 +74,7 @@ const ValidatorsMenuWithPrice = ({ {totalPrice.toFixed(2)} {currency} - + ) }