mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-10 10:26:53 +00:00
feat: add auto connect checkbox for is paired
This commit is contained in:
parent
d99d9f93ea
commit
ba56e05438
@ -19,9 +19,7 @@ const CreateLocalNodePage = () => {
|
|||||||
title="Create Local Node"
|
title="Create Local Node"
|
||||||
subtitle="Configure your device to start Staking on Nimbus"
|
subtitle="Configure your device to start Staking on Nimbus"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<CreateAvatar />
|
<CreateAvatar />
|
||||||
|
|
||||||
<YStack my={16}>
|
<YStack my={16}>
|
||||||
<Text size={19} weight="semibold">
|
<Text size={19} weight="semibold">
|
||||||
Settings
|
Settings
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { NodeIcon, CompleteIdIcon, ConnectionIcon } from '@status-im/icons'
|
import { NodeIcon, CompleteIdIcon, ConnectionIcon } from '@status-im/icons'
|
||||||
import { Separator, XStack, YStack } from 'tamagui'
|
import { Label, Separator, XStack, YStack } from 'tamagui'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Button, Text } from '@status-im/components'
|
import { Button, Checkbox, Text } from '@status-im/components'
|
||||||
|
|
||||||
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
|
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
|
||||||
import SyncStatus from './SyncStatus'
|
import SyncStatus from './SyncStatus'
|
||||||
@ -15,6 +15,7 @@ import ConnectViaIP from './ConnectViaIP/ConnectViaIP'
|
|||||||
const PairDevice = () => {
|
const PairDevice = () => {
|
||||||
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
||||||
const [isConnectingViaIp, setIsConnectingViaIp] = useState(false)
|
const [isConnectingViaIp, setIsConnectingViaIp] = useState(false)
|
||||||
|
const [isAutoConnectChecked, setIsAutoConnectChecked] = useState(false)
|
||||||
const isPaired = false
|
const isPaired = false
|
||||||
const isPairing = false
|
const isPairing = false
|
||||||
|
|
||||||
@ -79,6 +80,27 @@ const PairDevice = () => {
|
|||||||
</YStack>
|
</YStack>
|
||||||
</YStack>
|
</YStack>
|
||||||
)}
|
)}
|
||||||
|
{isPaired && (
|
||||||
|
<YStack space={'$3'}>
|
||||||
|
<Separator alignSelf="stretch" borderColor={'#F0F2F5'} marginTop={3} />
|
||||||
|
<Text size={19} weight="semibold">
|
||||||
|
General Settings
|
||||||
|
</Text>
|
||||||
|
<XStack space={'$4'} alignItems={'center'}>
|
||||||
|
<Checkbox
|
||||||
|
id="auto-connect"
|
||||||
|
selected={isAutoConnectChecked}
|
||||||
|
onCheckedChange={e => setIsAutoConnectChecked(e)}
|
||||||
|
variant="outline"
|
||||||
|
/>
|
||||||
|
<Label htmlFor="auto-connect">
|
||||||
|
<Text size={15} weight="regular">
|
||||||
|
Auto Connect Paired Device
|
||||||
|
</Text>
|
||||||
|
</Label>
|
||||||
|
</XStack>
|
||||||
|
</YStack>
|
||||||
|
)}
|
||||||
{isPaired && <CreateAvatar />}
|
{isPaired && <CreateAvatar />}
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user