mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-23 17:59:11 +00:00
Create ClientAddressRow.tsx
This commit is contained in:
parent
2013506f04
commit
6cc33d598e
61
src/pages/ConnectExistingInstance/ClientAddressRow.tsx
Normal file
61
src/pages/ConnectExistingInstance/ClientAddressRow.tsx
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
import { Input, Text } from "@status-im/components"
|
||||||
|
import { useState } from "react"
|
||||||
|
import { Checkbox, Stack, Switch, XStack, YStack } from "tamagui"
|
||||||
|
|
||||||
|
const ClientAddressRow = () => {
|
||||||
|
const [isBeaconSwitchOn, setIsBeaconSwitchOn] = useState(false)
|
||||||
|
const [inputAdress, setInputAdress] = useState('')
|
||||||
|
const [vcPort, setVcPort] = useState('')
|
||||||
|
const [isClientAddressChecked, setIsClientAddressChecked] = useState(false)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<YStack>
|
||||||
|
<XStack justifyContent={'space-between'}>
|
||||||
|
<YStack space={'$2'}>
|
||||||
|
<YStack>
|
||||||
|
<Text size={13} color={'#647084'} weight={'semibold'}> Protocol </Text>
|
||||||
|
<Text size={11} color={'#647084'} weight={'regular'}> (HTTP/HTTPS)</Text>
|
||||||
|
</YStack>
|
||||||
|
|
||||||
|
<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 space={'$2'}>
|
||||||
|
<Text size={11} color={'#647084'} weight={'regular'}>
|
||||||
|
Validator Client Address
|
||||||
|
</Text>
|
||||||
|
<Input
|
||||||
|
placeholder={''}
|
||||||
|
value={inputAdress}
|
||||||
|
onChangeText={() => { }}
|
||||||
|
/>
|
||||||
|
</YStack>
|
||||||
|
|
||||||
|
<YStack space={'$2'}>
|
||||||
|
<Text size={11} color={'#647084'} weight={'regular'}>
|
||||||
|
VC Port
|
||||||
|
</Text>
|
||||||
|
<Input
|
||||||
|
placeholder={''}
|
||||||
|
value={vcPort}
|
||||||
|
onChangeText={() => { }}
|
||||||
|
/>
|
||||||
|
</YStack>
|
||||||
|
<Stack style={{ alignItems: 'center', justifyContent: 'center' }} height={'100%'} width={'10%'}>
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
id='checkforaddress'
|
||||||
|
variant="outline"
|
||||||
|
selected={isClientAddressChecked}
|
||||||
|
onCheckedChange={() => setIsClientAddressChecked(prev => !prev)}
|
||||||
|
size={32}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
|
</XStack>
|
||||||
|
<XStack></XStack>
|
||||||
|
</YStack>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ClientAddressRow
|
Loading…
x
Reference in New Issue
Block a user