fix(create local node): fix bug on navigate

This commit is contained in:
Hristo Nedelkov 2024-03-18 13:33:29 +02:00
parent cc3be9a67d
commit b24a38301f
1 changed files with 9 additions and 8 deletions

View File

@ -1,7 +1,7 @@
import { useState } from 'react' import { useState } from 'react'
import { Button as StatusButton, Text, Checkbox } from '@status-im/components' import { Button as StatusButton, Text, Checkbox } from '@status-im/components'
import { NodeIcon } from '@status-im/icons' import { NodeIcon } from '@status-im/icons'
import { Label, Separator, XStack, YStack } from 'tamagui' import { Label, Separator, Stack, XStack, YStack } from 'tamagui'
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
import Header from '../../components/General/Header' import Header from '../../components/General/Header'
@ -44,13 +44,14 @@ const CreateLocalNode = () => {
</XStack> </XStack>
<Separator alignSelf="stretch" borderColor={'#F0F2F5'} /> <Separator alignSelf="stretch" borderColor={'#F0F2F5'} />
</YStack> </YStack>
<StatusButton <Stack cursor="pointer" width={'fit-content'}>
icon={<NodeIcon size={20} />} <StatusButton
onPress={navigate('/device-health-check')} icon={<NodeIcon size={20} />}
cursor="pointer" onPress={() => navigate('/device-health-check')}
> >
Continue Continue
</StatusButton> </StatusButton>
</Stack>
</article> </article>
</YStack> </YStack>
</PageWrapperShadow> </PageWrapperShadow>