feat(deposit-panel): add chain parity
This commit is contained in:
parent
5dccf1c050
commit
6982d45bfd
|
@ -5,15 +5,15 @@ import { useState } from 'react'
|
||||||
import { useSelector } from 'react-redux'
|
import { useSelector } from 'react-redux'
|
||||||
|
|
||||||
import PanelWrapper from './PanelWrapper'
|
import PanelWrapper from './PanelWrapper'
|
||||||
|
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 { RootState } from '../../../../../redux/store'
|
import ChainParity from '../../../../ValidatorOnboarding/Deposit/ChainParity'
|
||||||
|
|
||||||
const DepositPanel = () => {
|
const DepositPanel = () => {
|
||||||
const [isInfoBoxVisible, setIsInfoBoxVisible] = useState(true)
|
const [isInfoBoxVisible, setIsInfoBoxVisible] = useState(true)
|
||||||
const { isWalletConnected, isTransactionConfirmation } = useSelector(
|
const { isWalletConnected, isTransactionConfirmation, isChainParity } =
|
||||||
(state: RootState) => state.deposit,
|
useSelector((state: RootState) => state.deposit)
|
||||||
)
|
|
||||||
|
|
||||||
const onCloseInfoBox = () => {
|
const onCloseInfoBox = () => {
|
||||||
setIsInfoBoxVisible(false)
|
setIsInfoBoxVisible(false)
|
||||||
|
@ -24,6 +24,9 @@ const DepositPanel = () => {
|
||||||
<Text size={19} weight={'semibold'}>
|
<Text size={19} weight={'semibold'}>
|
||||||
Deposit Funds
|
Deposit Funds
|
||||||
</Text>
|
</Text>
|
||||||
|
{isChainParity ? (
|
||||||
|
<ChainParity />
|
||||||
|
) : (
|
||||||
<YStack
|
<YStack
|
||||||
space={'$3'}
|
space={'$3'}
|
||||||
style={{
|
style={{
|
||||||
|
@ -53,6 +56,7 @@ const DepositPanel = () => {
|
||||||
</YStack>
|
</YStack>
|
||||||
)}
|
)}
|
||||||
</YStack>
|
</YStack>
|
||||||
|
)}
|
||||||
</PanelWrapper>
|
</PanelWrapper>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue