From 2013506f04ca930af8aab672085bbb7807d83d67 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Fri, 22 Sep 2023 17:33:53 +0300 Subject: [PATCH] Clear code --- .../ConnectExistingInstance.tsx | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/src/pages/ConnectExistingInstance/ConnectExistingInstance.tsx b/src/pages/ConnectExistingInstance/ConnectExistingInstance.tsx index ed8fe512..67d3647a 100644 --- a/src/pages/ConnectExistingInstance/ConnectExistingInstance.tsx +++ b/src/pages/ConnectExistingInstance/ConnectExistingInstance.tsx @@ -1,6 +1,6 @@ -import { Separator, Switch, XStack, YStack } from 'tamagui' +import { Separator, Stack, Switch, XStack, YStack } from 'tamagui' import { useState } from 'react' -import { Button, Input, Text } from '@status-im/components' +import { Button, Checkbox, Input, Text } from '@status-im/components' import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' @@ -12,13 +12,11 @@ import { NodeIcon, SettingsIcon, CompleteIdIcon, ClearIcon } from '@status-im/ic import Header from '../../components/General/Header' import Icon from '../../components/General/Icon' import PairedSuccessfully from '../PairDevice/PairedSuccessfully' +import ClientAddressRow from './ClientAddressRow' const ConnectExistingInstance = () => { - const [isAwaitingPairing, setIsAwaitingPairing] = useState(false) const isPaired = false - const isPairing = false const [encryptedPassword, setEncryptedPassword] = useState('') - const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false) const changeEncryptedPasswordHandler = (value: string) => { setEncryptedPassword(value) @@ -51,18 +49,7 @@ const ConnectExistingInstance = () => { {/* two rows */} - - - Protocol - - setIsBeaconSwitchOn(prev => !prev)}> - - - - - - - + @@ -89,10 +76,10 @@ const ConnectExistingInstance = () => { - {isPaired && } + -