diff --git a/src/pages/PairDevice/PairDevice.tsx b/src/pages/PairDevice/PairDevice.tsx index 40ef3712..2995c368 100644 --- a/src/pages/PairDevice/PairDevice.tsx +++ b/src/pages/PairDevice/PairDevice.tsx @@ -1,7 +1,6 @@ import { Separator, XStack, YStack } from 'tamagui' import { useState } from 'react' -import { v4 as uuidv4 } from 'uuid' -import { Button, Checkbox, Input, Tag, Text } from '@status-im/components' +import { Button, Checkbox, Tag, Text } from '@status-im/components' import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' import SyncStatus from './SyncStatus' @@ -10,13 +9,17 @@ import PairIcon from '../../components/Icons/PairIcon' import CreateIcon from '../../components/Icons/CreateIcon' import NodeIcon from '../../components/Icons/NodeIcon' import Titles from '../../components/General/Titles' -// import CompleteId from '../../components/Icons/CompleteId' +import PairedSuccessfully from './PairedSuccessfully' + const PairDevice = () => { const [autoChecked, setAutoChecked] = useState(false) - const isPaired = true - const isPairing = false - const isPairedSuccessfully = true - console.log(uuidv4()) + const [isAwaitingPairing, setIsAwaitingPairing] = useState(false) + const isPaired = false + const isPairing = true + + const changeSetIsAwaitingPairing = (result: boolean) => { + setIsAwaitingPairing(result) + } return ( @@ -34,26 +37,15 @@ const PairDevice = () => { - - - Pair with Command line - - - - - {!isPairedSuccessfully && ( - <> - - Generated Pairing ID - - '} /> - - )} - + {isPaired ? : <>} - + {!isPaired && ( + + )} Settings