feat(deposit-validator): show deposit amount eth

This commit is contained in:
RadoslavDimchev 2024-03-07 16:37:54 +02:00 committed by Emil Ivanichkov
parent ef7057fb3f
commit 2e17c53415
2 changed files with 3 additions and 4 deletions

View File

@ -3,14 +3,14 @@ import { YStack } from 'tamagui'
import { useSelector } from 'react-redux'
import PanelWrapper from './PanelWrapper'
import { getDepositTitle } from '../../../../../utilities'
import { RootState } from '../../../../../redux/store'
import ConnectedWallet from '../../../../../components/General/ConnectedWallet'
import ConnectWallet from '../../../../../components/General/ConnectWallet'
import ChainParity from '../../../../../components/General/ChainParity'
import ValidatorRequest from '../../../../../components/General/ValidatorRequest/ValidatorRequest'
import { getDepositTitle } from '../../../../../utilities'
import DepositValidator from './DepositValidator'
import ValidatorBalanceInfoBox from '../../../../../components/General/ValidatorBalanceInfoBox'
import DepositValidator from './DepositValidator'
const DepositPanel = () => {
const { isWalletConnected, isTransactionConfirmation, isChainParity } =

View File

@ -7,7 +7,6 @@ import CurrencyDropdown from '../../../../../components/General/CurrencyDropdown
const DepositValidator = () => {
const [depositAmount, setDepositAmount] = useState('')
const price = 1
const changeDepositAmountHandler = (value: string) => {
const numberValue = Number(value)
@ -44,7 +43,7 @@ const DepositValidator = () => {
onChangeText={changeDepositAmountHandler}
/>
</YStack>
<CurrencyDropdown price={price} />
<CurrencyDropdown price={Number(depositAmount)} />
</XStack>
)
}