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 PanelWrapper from './PanelWrapper'
|
||||
import { RootState } from '../../../../../redux/store'
|
||||
import ConnectedWallet from '../../../../../components/General/ConnectedWallet'
|
||||
import ConnectWallet from '../../../../../components/General/ConnectWallet'
|
||||
import { RootState } from '../../../../../redux/store'
|
||||
import ChainParity from '../../../../ValidatorOnboarding/Deposit/ChainParity'
|
||||
|
||||
const DepositPanel = () => {
|
||||
const [isInfoBoxVisible, setIsInfoBoxVisible] = useState(true)
|
||||
const { isWalletConnected, isTransactionConfirmation } = useSelector(
|
||||
(state: RootState) => state.deposit,
|
||||
)
|
||||
const { isWalletConnected, isTransactionConfirmation, isChainParity } =
|
||||
useSelector((state: RootState) => state.deposit)
|
||||
|
||||
const onCloseInfoBox = () => {
|
||||
setIsInfoBoxVisible(false)
|
||||
|
@ -24,6 +24,9 @@ const DepositPanel = () => {
|
|||
<Text size={19} weight={'semibold'}>
|
||||
Deposit Funds
|
||||
</Text>
|
||||
{isChainParity ? (
|
||||
<ChainParity />
|
||||
) : (
|
||||
<YStack
|
||||
space={'$3'}
|
||||
style={{
|
||||
|
@ -53,6 +56,7 @@ const DepositPanel = () => {
|
|||
</YStack>
|
||||
)}
|
||||
</YStack>
|
||||
)}
|
||||
</PanelWrapper>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue