feat: separate connect wallet part

This commit is contained in:
RadoslavDimchev 2023-09-20 19:01:42 +03:00
parent e1144c3290
commit 8bcdb71ae9
2 changed files with 26 additions and 13 deletions

View File

@ -0,0 +1,22 @@
import { Avatar, Button, Text } from '@status-im/components'
import { XStack, YStack } from 'tamagui'
const ConnectWallet = () => {
return (
<YStack space={'$3'}>
<Text size={19} weight={'semibold'}>
Connect Wallet
</Text>
<XStack space={'$2'} alignItems={'center'}>
<Avatar
type="icon"
size={32}
icon={<img src={'/icons/eth-logo.svg'} alt="eth-logo" style={{ width: '100%' }} />}
/>
<Button>Connect Wallet</Button>
</XStack>
</YStack>
)
}
export default ConnectWallet

View File

@ -1,10 +1,11 @@
import { Avatar, Button, DividerLine, InformationBox, Text } from '@status-im/components'
import { DividerLine, InformationBox, Text } from '@status-im/components'
import { PlaceholderIcon } from '@status-im/icons'
import { XStack, YStack } from 'tamagui'
import { YStack } from 'tamagui'
import { useState } from 'react'
import ValidatorRequest from './ValidatorRequest'
import Validators from './Validators'
import ConnectWallet from './ConnectWallet'
const Deposit = () => {
const [isInfoBoxVisible, setIsInfoBoxVisible] = useState(true)
@ -45,17 +46,7 @@ const Deposit = () => {
icon={<PlaceholderIcon size={16} />}
/>
)}
<Text size={19} weight={'semibold'}>
Connect Wallet
</Text>
<XStack space={'$2'} alignItems={'center'}>
<Avatar
type="icon"
size={32}
icon={<img src={'/icons/eth-logo.svg'} alt="eth-logo" style={{ width: '100%' }} />}
/>
<Button>Connect Wallet</Button>
</XStack>
<ConnectWallet />
</YStack>
)
}