feat: show connect or connected wallet

This commit is contained in:
RadoslavDimchev 2023-09-20 21:16:43 +03:00
parent 71dcb2aa7f
commit 32eaa90f57
1 changed files with 4 additions and 1 deletions

View File

@ -6,11 +6,14 @@ import { useState } from 'react'
import ValidatorRequest from './ValidatorRequest'
import Validators from './Validators'
import ConnectWallet from './ConnectWallet'
import ConnectedWallet from './ConnectedWallet'
const Deposit = () => {
const [isInfoBoxVisible, setIsInfoBoxVisible] = useState(true)
const [validatorCount, setValidatorCount] = useState(0)
const validatorRequests = [1, 2]
const isConnectedWallet = false
const addValidatorHandler = () => {
setValidatorCount((state: number) => state + 1)
@ -51,7 +54,7 @@ const Deposit = () => {
<Text size={19} weight={'semibold'}>
Connect Wallet
</Text>
<ConnectWallet />
{isConnectedWallet ? <ConnectedWallet /> : <ConnectWallet />}
</YStack>
)
}