fix all inputs onChange event handler

This commit is contained in:
Hristo Nedelkov 2023-09-25 18:37:47 +03:00
parent 82bdb38be6
commit 46556f71ed
3 changed files with 7 additions and 8 deletions

View File

@ -7,7 +7,7 @@ const BeackonAddress = () => {
const [inputAdress, setInputAdress] = useState('')
const [vcPort, setVcPort] = useState('')
const [isClientAddressChecked, setIsClientAddressChecked] = useState(false)
return (
<YStack>
<XStack justifyContent={'space-between'}>
@ -23,12 +23,12 @@ const BeackonAddress = () => {
</YStack>
<YStack space={'$2'}>
<Text size={11} color={'#647084'} weight={'regular'}>
Beacon Address
Beacon Address
</Text>
<Input
placeholder={''}
value={inputAdress}
onChangeText={() => { }}
onChangeText={(e) => { setInputAdress(e) }}
/>
</YStack>
@ -39,7 +39,7 @@ const BeackonAddress = () => {
<Input
placeholder={''}
value={vcPort}
onChangeText={() => { }}
onChangeText={(e) => { setVcPort(e) }}
/>
</YStack>
<Stack style={{ alignItems: 'center', justifyContent: 'center' }} height={'100%'} width={'10%'}>

View File

@ -7,7 +7,7 @@ const ClientAddressRow = () => {
const [inputAdress, setInputAdress] = useState('')
const [vcPort, setVcPort] = useState('')
const [isClientAddressChecked, setIsClientAddressChecked] = useState(false)
return (
<YStack>
<XStack justifyContent={'space-between'}>
@ -28,7 +28,7 @@ const ClientAddressRow = () => {
<Input
placeholder={''}
value={inputAdress}
onChangeText={() => { }}
onChangeText={(e) => { setInputAdress(e) }}
/>
</YStack>
@ -39,7 +39,7 @@ const ClientAddressRow = () => {
<Input
placeholder={''}
value={vcPort}
onChangeText={() => { }}
onChangeText={(e) => { setVcPort(e)}}
/>
</YStack>
<Stack style={{ alignItems: 'center', justifyContent: 'center' }} height={'100%'} width={'10%'}>

View File

@ -49,7 +49,6 @@ const ConnectExistingInstance = () => {
Advanced
</Button>
</XStack>
{/* two rows */}
<ClientAddressRow />
<BeackonAddress/>
<Separator borderColor={'#e3e3e3'} />