style: format
This commit is contained in:
parent
481113a8f3
commit
fb94ca76d5
|
@ -1,6 +1,6 @@
|
||||||
import { Checkbox, Input, Text } from "@status-im/components"
|
import { Checkbox, Input, Text } from '@status-im/components'
|
||||||
import { useState } from "react"
|
import { useState } from 'react'
|
||||||
import { Stack, Switch, XStack, YStack } from "tamagui"
|
import { Stack, Switch, XStack, YStack } from 'tamagui'
|
||||||
|
|
||||||
const BeaconAddress = () => {
|
const BeaconAddress = () => {
|
||||||
const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false)
|
const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false)
|
||||||
|
@ -13,12 +13,31 @@ const BeaconAddress = () => {
|
||||||
<XStack justifyContent={'space-between'}>
|
<XStack justifyContent={'space-between'}>
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$2'}>
|
||||||
<YStack>
|
<YStack>
|
||||||
<Text size={13} color={'#647084'} weight={'semibold'}> Protocol </Text>
|
<Text size={13} color={'#647084'} weight={'semibold'}>
|
||||||
<Text size={11} color={'#647084'} weight={'regular'}> (HTTP/HTTPS)</Text>
|
{' '}
|
||||||
|
Protocol{' '}
|
||||||
|
</Text>
|
||||||
|
<Text size={11} color={'#647084'} weight={'regular'}>
|
||||||
|
{' '}
|
||||||
|
(HTTP/HTTPS)
|
||||||
|
</Text>
|
||||||
</YStack>
|
</YStack>
|
||||||
|
|
||||||
<Switch size="$1" style={isBeaconSwitchOn ? { backgroundColor: '#2A4AF5' } : { backgroundColor: 'grey' }} checked={isBeaconSwitchOn} onCheckedChange={() => setIsBeaconSwitchOn(prev => !prev)}>
|
<Switch
|
||||||
<Switch.Thumb style={{ right: 7, bottom: 3, backgroundColor: '#fff', height: '16px', width: '16px' }} />
|
size="$1"
|
||||||
|
style={isBeaconSwitchOn ? { backgroundColor: '#2A4AF5' } : { backgroundColor: 'grey' }}
|
||||||
|
checked={isBeaconSwitchOn}
|
||||||
|
onCheckedChange={() => setIsBeaconSwitchOn(prev => !prev)}
|
||||||
|
>
|
||||||
|
<Switch.Thumb
|
||||||
|
style={{
|
||||||
|
right: 7,
|
||||||
|
bottom: 3,
|
||||||
|
backgroundColor: '#fff',
|
||||||
|
height: '16px',
|
||||||
|
width: '16px',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</YStack>
|
</YStack>
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$2'}>
|
||||||
|
@ -28,7 +47,9 @@ const BeaconAddress = () => {
|
||||||
<Input
|
<Input
|
||||||
placeholder={''}
|
placeholder={''}
|
||||||
value={inputAdress}
|
value={inputAdress}
|
||||||
onChangeText={(e) => { setInputAdress(e) }}
|
onChangeText={e => {
|
||||||
|
setInputAdress(e)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</YStack>
|
</YStack>
|
||||||
|
|
||||||
|
@ -39,12 +60,19 @@ const BeaconAddress = () => {
|
||||||
<Input
|
<Input
|
||||||
placeholder={''}
|
placeholder={''}
|
||||||
value={vcPort}
|
value={vcPort}
|
||||||
onChangeText={(e) => { setVcPort(e) }}
|
onChangeText={e => {
|
||||||
|
setVcPort(e)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</YStack>
|
</YStack>
|
||||||
<Stack style={{ alignItems: 'center', justifyContent: 'center' }} height={'100%'} marginTop={'10px'} width={'fit-content'} >
|
<Stack
|
||||||
|
style={{ alignItems: 'center', justifyContent: 'center' }}
|
||||||
|
height={'100%'}
|
||||||
|
marginTop={'10px'}
|
||||||
|
width={'fit-content'}
|
||||||
|
>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id='checkforaddress'
|
id="checkforaddress"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
selected={isClientAddressChecked}
|
selected={isClientAddressChecked}
|
||||||
onCheckedChange={() => setIsClientAddressChecked(prev => !prev)}
|
onCheckedChange={() => setIsClientAddressChecked(prev => !prev)}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Checkbox, Input, Text } from "@status-im/components"
|
import { Checkbox, Input, Text } from '@status-im/components'
|
||||||
import { useState } from "react"
|
import { useState } from 'react'
|
||||||
import { Stack, Switch, XStack, YStack } from "tamagui"
|
import { Stack, Switch, XStack, YStack } from 'tamagui'
|
||||||
|
|
||||||
const ClientAddressRow = () => {
|
const ClientAddressRow = () => {
|
||||||
const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false)
|
const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false)
|
||||||
|
@ -13,11 +13,30 @@ const ClientAddressRow = () => {
|
||||||
<XStack justifyContent={'space-between'}>
|
<XStack justifyContent={'space-between'}>
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$2'}>
|
||||||
<YStack>
|
<YStack>
|
||||||
<Text size={13} color={'#647084'} weight={'semibold'}> Protocol </Text>
|
<Text size={13} color={'#647084'} weight={'semibold'}>
|
||||||
<Text size={11} color={'#647084'} weight={'regular'}> (HTTP/HTTPS)</Text>
|
{' '}
|
||||||
|
Protocol{' '}
|
||||||
|
</Text>
|
||||||
|
<Text size={11} color={'#647084'} weight={'regular'}>
|
||||||
|
{' '}
|
||||||
|
(HTTP/HTTPS)
|
||||||
|
</Text>
|
||||||
</YStack>
|
</YStack>
|
||||||
<Switch size="$1" style={isBeaconSwitchOn ? { backgroundColor: '#2A4AF5' } : { backgroundColor: 'grey' }} checked={isBeaconSwitchOn} onCheckedChange={() => setIsBeaconSwitchOn(prev => !prev)}>
|
<Switch
|
||||||
<Switch.Thumb style={{ right: 7, bottom: 3, backgroundColor: '#fff', height: '16px', width: '16px' }} />
|
size="$1"
|
||||||
|
style={isBeaconSwitchOn ? { backgroundColor: '#2A4AF5' } : { backgroundColor: 'grey' }}
|
||||||
|
checked={isBeaconSwitchOn}
|
||||||
|
onCheckedChange={() => setIsBeaconSwitchOn(prev => !prev)}
|
||||||
|
>
|
||||||
|
<Switch.Thumb
|
||||||
|
style={{
|
||||||
|
right: 7,
|
||||||
|
bottom: 3,
|
||||||
|
backgroundColor: '#fff',
|
||||||
|
height: '16px',
|
||||||
|
width: '16px',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</YStack>
|
</YStack>
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$2'}>
|
||||||
|
@ -27,7 +46,9 @@ const ClientAddressRow = () => {
|
||||||
<Input
|
<Input
|
||||||
placeholder={''}
|
placeholder={''}
|
||||||
value={inputAdress}
|
value={inputAdress}
|
||||||
onChangeText={(e) => { setInputAdress(e) }}
|
onChangeText={e => {
|
||||||
|
setInputAdress(e)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</YStack>
|
</YStack>
|
||||||
|
|
||||||
|
@ -38,17 +59,23 @@ const ClientAddressRow = () => {
|
||||||
<Input
|
<Input
|
||||||
placeholder={''}
|
placeholder={''}
|
||||||
value={vcPort}
|
value={vcPort}
|
||||||
onChangeText={(e) => { setVcPort(e) }}
|
onChangeText={e => {
|
||||||
|
setVcPort(e)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</YStack>
|
</YStack>
|
||||||
<Stack style={{ alignItems: 'center', justifyContent: 'center' }} height={'100%'} marginTop={'10px'} width={'fit-content'} >
|
<Stack
|
||||||
|
style={{ alignItems: 'center', justifyContent: 'center' }}
|
||||||
|
height={'100%'}
|
||||||
|
marginTop={'10px'}
|
||||||
|
width={'fit-content'}
|
||||||
|
>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id='checkforaddress'
|
id="checkforaddress"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
selected={isClientAddressChecked}
|
selected={isClientAddressChecked}
|
||||||
onCheckedChange={() => setIsClientAddressChecked(prev => !prev)}
|
onCheckedChange={() => setIsClientAddressChecked(prev => !prev)}
|
||||||
size={20}
|
size={20}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</XStack>
|
</XStack>
|
||||||
|
|
|
@ -27,17 +27,15 @@ const ConnectExistingInstance = () => {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Header selectedTag="pair" />
|
<Header selectedTag="pair" />
|
||||||
<Titles title="Connect to existing Nimbus Instance" subtitle="Pair your existing device to the Nimbus Node Manager " />
|
<Titles
|
||||||
|
title="Connect to existing Nimbus Instance"
|
||||||
|
subtitle="Pair your existing device to the Nimbus Node Manager "
|
||||||
|
/>
|
||||||
<XStack style={{ justifyContent: 'space-between' }}>
|
<XStack style={{ justifyContent: 'space-between' }}>
|
||||||
<Text size={19} weight={'semibold'} color="#09101C">
|
<Text size={19} weight={'semibold'} color="#09101C">
|
||||||
Connect via IP
|
Connect via IP
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
<Button variant="grey" size={24} icon={<SettingsIcon size={20} />}>
|
||||||
variant="grey"
|
|
||||||
size={24}
|
|
||||||
icon={<SettingsIcon size={20} />}
|
|
||||||
|
|
||||||
>
|
|
||||||
Advanced
|
Advanced
|
||||||
</Button>
|
</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
|
@ -67,11 +65,13 @@ const ConnectExistingInstance = () => {
|
||||||
Advanced Settings
|
Advanced Settings
|
||||||
</Text>
|
</Text>
|
||||||
<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>
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
<XStack>
|
<XStack>
|
||||||
<Button icon={<NodeIcon size={20} />} variant='blue' >
|
<Button icon={<NodeIcon size={20} />} variant="blue">
|
||||||
Continue
|
Continue
|
||||||
</Button>
|
</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
|
|
|
@ -44,7 +44,10 @@ const PairDevice = () => {
|
||||||
Advanced Settings
|
Advanced Settings
|
||||||
</Text>
|
</Text>
|
||||||
<XStack space={'$4'}>
|
<XStack space={'$4'}>
|
||||||
<Button icon={<Icon src='/icons/connection-blue.svg' width={20} />} variant='outline' > Connect via IP </Button>
|
<Button icon={<Icon src="/icons/connection-blue.svg" width={20} />} variant="outline">
|
||||||
|
{' '}
|
||||||
|
Connect via IP{' '}
|
||||||
|
</Button>
|
||||||
</XStack>
|
</XStack>
|
||||||
{isPaired && <CreateAvatar />}
|
{isPaired && <CreateAvatar />}
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
|
|
Loading…
Reference in New Issue