Merge branch 'hn.validator-onboarding' of https://github.com/nimbus-gui/nimbus-gui into hn.validator-onboarding

This commit is contained in:
RadoslavDimchev 2023-09-05 10:06:11 +03:00
commit 68a6984234
3 changed files with 18 additions and 4 deletions

View File

@ -17,5 +17,9 @@ export default meta
type Story = StoryObj<typeof meta>
export const Default: Story = {
args: {},
args: {
valueOf: () => {
return true
},
},
}

View File

@ -1,8 +1,13 @@
import React, { useState } from 'react'
import { XStack, YStack } from 'tamagui'
import { ClearIcon } from '@status-im/icons'
import { Avatar, Text } from '@status-im/components'
const PairedDeviceCard = () => {
const PairedDeviceCard = (isVisibleState: boolean) => {
const [isVisible, setIsVisible] = useState(isVisibleState)
if (!isVisible) return null
return (
<XStack
space={'$7'}
@ -24,7 +29,12 @@ const PairedDeviceCard = () => {
</Text>
</YStack>
</XStack>
<ClearIcon size={20} color="#A1ABBD" />
<ClearIcon
size={20}
color="#A1ABBD"
cursor={'pointer'}
onClick={() => setIsVisible(false)}
/>
</XStack>
)
}

View File

@ -12,7 +12,7 @@ const ValidatorSetup = () => {
<Text size={27} weight={'semibold'}>
Validator Setup
</Text>
<PairedDeviceCard />
<PairedDeviceCard isVisibleState={true} />
</XStack>
<YStack>