mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
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 { useSelector } from 'react-redux'
|
||||||
|
|
||||||
import PanelWrapper from './PanelWrapper'
|
import PanelWrapper from './PanelWrapper'
|
||||||
|
import { getDepositTitle } from '../../../../../utilities'
|
||||||
import { RootState } from '../../../../../redux/store'
|
import { RootState } from '../../../../../redux/store'
|
||||||
import ConnectedWallet from '../../../../../components/General/ConnectedWallet'
|
import ConnectedWallet from '../../../../../components/General/ConnectedWallet'
|
||||||
import ConnectWallet from '../../../../../components/General/ConnectWallet'
|
import ConnectWallet from '../../../../../components/General/ConnectWallet'
|
||||||
import ChainParity from '../../../../../components/General/ChainParity'
|
import ChainParity from '../../../../../components/General/ChainParity'
|
||||||
import ValidatorRequest from '../../../../../components/General/ValidatorRequest/ValidatorRequest'
|
import ValidatorRequest from '../../../../../components/General/ValidatorRequest/ValidatorRequest'
|
||||||
import { getDepositTitle } from '../../../../../utilities'
|
|
||||||
import DepositValidator from './DepositValidator'
|
|
||||||
import ValidatorBalanceInfoBox from '../../../../../components/General/ValidatorBalanceInfoBox'
|
import ValidatorBalanceInfoBox from '../../../../../components/General/ValidatorBalanceInfoBox'
|
||||||
|
import DepositValidator from './DepositValidator'
|
||||||
|
|
||||||
const DepositPanel = () => {
|
const DepositPanel = () => {
|
||||||
const { isWalletConnected, isTransactionConfirmation, isChainParity } =
|
const { isWalletConnected, isTransactionConfirmation, isChainParity } =
|
||||||
|
@ -7,7 +7,6 @@ import CurrencyDropdown from '../../../../../components/General/CurrencyDropdown
|
|||||||
|
|
||||||
const DepositValidator = () => {
|
const DepositValidator = () => {
|
||||||
const [depositAmount, setDepositAmount] = useState('')
|
const [depositAmount, setDepositAmount] = useState('')
|
||||||
const price = 1
|
|
||||||
|
|
||||||
const changeDepositAmountHandler = (value: string) => {
|
const changeDepositAmountHandler = (value: string) => {
|
||||||
const numberValue = Number(value)
|
const numberValue = Number(value)
|
||||||
@ -44,7 +43,7 @@ const DepositValidator = () => {
|
|||||||
onChangeText={changeDepositAmountHandler}
|
onChangeText={changeDepositAmountHandler}
|
||||||
/>
|
/>
|
||||||
</YStack>
|
</YStack>
|
||||||
<CurrencyDropdown price={price} />
|
<CurrencyDropdown price={Number(depositAmount)} />
|
||||||
</XStack>
|
</XStack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user