Clear code
This commit is contained in:
parent
31572de9b6
commit
2013506f04
|
@ -1,6 +1,6 @@
|
||||||
import { Separator, Switch, XStack, YStack } from 'tamagui'
|
import { Separator, Stack, Switch, XStack, YStack } from 'tamagui'
|
||||||
import { useState } from 'react'
|
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'
|
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 Header from '../../components/General/Header'
|
||||||
import Icon from '../../components/General/Icon'
|
import Icon from '../../components/General/Icon'
|
||||||
import PairedSuccessfully from '../PairDevice/PairedSuccessfully'
|
import PairedSuccessfully from '../PairDevice/PairedSuccessfully'
|
||||||
|
import ClientAddressRow from './ClientAddressRow'
|
||||||
|
|
||||||
const ConnectExistingInstance = () => {
|
const ConnectExistingInstance = () => {
|
||||||
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
|
||||||
const isPaired = false
|
const isPaired = false
|
||||||
const isPairing = false
|
|
||||||
const [encryptedPassword, setEncryptedPassword] = useState('')
|
const [encryptedPassword, setEncryptedPassword] = useState('')
|
||||||
const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false)
|
|
||||||
|
|
||||||
const changeEncryptedPasswordHandler = (value: string) => {
|
const changeEncryptedPasswordHandler = (value: string) => {
|
||||||
setEncryptedPassword(value)
|
setEncryptedPassword(value)
|
||||||
|
@ -51,18 +49,7 @@ const ConnectExistingInstance = () => {
|
||||||
</Button>
|
</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
{/* two rows */}
|
{/* two rows */}
|
||||||
<YStack>
|
<ClientAddressRow />
|
||||||
<XStack>
|
|
||||||
<YStack><Text size={15} weight={'#647084'}>Protocol</Text>
|
|
||||||
|
|
||||||
<Switch size="$2" style={isBeaconSwitchOn ? { backgroundColor: '#2A4AF5' } : { backgroundColor: 'grey' }} checked={isBeaconSwitchOn} onCheckedChange={() => setIsBeaconSwitchOn(prev => !prev)}>
|
|
||||||
<Switch.Thumb style={{ backgroundColor: '#fff', border: '1px solid #2A4AF5' }} />
|
|
||||||
</Switch>
|
|
||||||
</YStack>
|
|
||||||
<YStack></YStack>
|
|
||||||
</XStack>
|
|
||||||
<XStack></XStack>
|
|
||||||
</YStack>
|
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$2'}>
|
||||||
<Text size={11} color={'#647084'}>
|
<Text size={11} color={'#647084'}>
|
||||||
|
@ -89,10 +76,10 @@ const ConnectExistingInstance = () => {
|
||||||
<XStack space={'$4'}>
|
<XStack space={'$4'}>
|
||||||
<Button icon={<CompleteIdIcon size={20} color="#2A4AF5" />} variant='outline' >Pair with ID </Button>
|
<Button icon={<CompleteIdIcon size={20} color="#2A4AF5" />} variant='outline' >Pair with ID </Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
{isPaired && <CreateAvatar />}
|
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
<XStack>
|
<XStack>
|
||||||
<Button icon={<NodeIcon size={20} />} disabled={!isPaired}>
|
<Button icon={<NodeIcon size={20} />} >
|
||||||
Continue
|
Continue
|
||||||
</Button>
|
</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
|
|
Loading…
Reference in New Issue