fix: small changes to structure states
This commit is contained in:
parent
3237787781
commit
f2b65fca8b
|
@ -3,7 +3,7 @@ import { CompleteIdIcon, CopyIcon } from '@status-im/icons'
|
||||||
import { Text } from '@tamagui/web'
|
import { Text } from '@tamagui/web'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import { XStack, YStack } from 'tamagui'
|
import { Separator, XStack, YStack } from 'tamagui'
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
|
|
||||||
type GenerateIdProps = {
|
type GenerateIdProps = {
|
||||||
|
@ -58,6 +58,7 @@ const GenerateId = ({ isAwaitingPairing }: GenerateIdProps) => {
|
||||||
</Link>
|
</Link>
|
||||||
.
|
.
|
||||||
</StatusText>
|
</StatusText>
|
||||||
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,12 @@ import NodeIcon from '../../components/Icons/NodeIcon'
|
||||||
import Titles from '../../components/General/Titles'
|
import Titles from '../../components/General/Titles'
|
||||||
import PairedSuccessfully from './PairedSuccessfully'
|
import PairedSuccessfully from './PairedSuccessfully'
|
||||||
import { CreateAvatar } from './CreateAvatar'
|
import { CreateAvatar } from './CreateAvatar'
|
||||||
|
import GenerateId from './GenerateId'
|
||||||
|
|
||||||
const PairDevice = () => {
|
const PairDevice = () => {
|
||||||
const [autoChecked, setAutoChecked] = useState(false)
|
const [autoChecked, setAutoChecked] = useState(false)
|
||||||
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
||||||
const isPaired = true
|
const isPaired = false
|
||||||
const isPairing = true
|
const isPairing = true
|
||||||
|
|
||||||
const changeSetIsAwaitingPairing = (result: boolean) => {
|
const changeSetIsAwaitingPairing = (result: boolean) => {
|
||||||
|
@ -25,7 +26,7 @@ const PairDevice = () => {
|
||||||
return (
|
return (
|
||||||
<PageWrapperShadow rightImageSrc="/background-images/day-night-bg.png">
|
<PageWrapperShadow rightImageSrc="/background-images/day-night-bg.png">
|
||||||
<YStack
|
<YStack
|
||||||
space={'$4'}
|
space={'$3'}
|
||||||
style={{
|
style={{
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
}}
|
}}
|
||||||
|
@ -38,8 +39,7 @@ const PairDevice = () => {
|
||||||
</XStack>
|
</XStack>
|
||||||
</XStack>
|
</XStack>
|
||||||
<Titles title="Pair Device" subtitle="Pair your device to the Nimbus Node Manager" />
|
<Titles title="Pair Device" subtitle="Pair your device to the Nimbus Node Manager" />
|
||||||
{isPaired ? <PairedSuccessfully /> : <></>}
|
{isPaired ? <PairedSuccessfully /> : <GenerateId isAwaitingPairing={isAwaitingPairing} />}
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
|
||||||
{!isPaired && (
|
{!isPaired && (
|
||||||
<SyncStatus
|
<SyncStatus
|
||||||
isPairing={isPairing}
|
isPairing={isPairing}
|
||||||
|
|
Loading…
Reference in New Issue