use tamagui Switch in Connect Existing Nimbus Instance
This commit is contained in:
parent
42fe313238
commit
8972d8fa92
|
@ -1,4 +1,4 @@
|
||||||
import { Separator, XStack, YStack } from 'tamagui'
|
import { Separator, Switch, XStack, YStack } from 'tamagui'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Button, Input, Text } from '@status-im/components'
|
import { Button, Input, Text } from '@status-im/components'
|
||||||
|
|
||||||
|
@ -18,10 +18,12 @@ const ConnectExistingInstance = () => {
|
||||||
const isPaired = false
|
const isPaired = false
|
||||||
const isPairing = 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)
|
||||||
}
|
}
|
||||||
|
|
||||||
const clearEncryptedPasswordHandler = () => {
|
const clearEncryptedPasswordHandler = () => {
|
||||||
setEncryptedPassword('')
|
setEncryptedPassword('')
|
||||||
}
|
}
|
||||||
|
@ -48,7 +50,19 @@ const ConnectExistingInstance = () => {
|
||||||
Advanced
|
Advanced
|
||||||
</Button>
|
</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
|
{/* two rows */}
|
||||||
|
<YStack>
|
||||||
|
<XStack>
|
||||||
|
<YStack><Text size={15} weight={'#647084'}>Protocol</Text>
|
||||||
|
|
||||||
|
<Switch size="$2" checked={isBeaconSwitchOn} onCheckedChange={() => setIsBeaconSwitchOn(prev => !prev)}>
|
||||||
|
<Switch.Thumb />
|
||||||
|
</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'}>
|
||||||
|
|
Loading…
Reference in New Issue