feat(deposit-panel): add chain parity

This commit is contained in:
RadoslavDimchev 2024-02-23 08:47:14 +02:00 committed by Emil Ivanichkov
parent 5dccf1c050
commit 6982d45bfd
1 changed files with 37 additions and 33 deletions

View File

@ -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>
)
}