feat(deposit-validator): show deposit amount eth
This commit is contained in:
parent
ef7057fb3f
commit
2e17c53415
|
@ -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 } =
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue