fix all inputs onChange event handler
This commit is contained in:
parent
82bdb38be6
commit
46556f71ed
|
@ -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%'}>
|
||||
|
|
|
@ -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%'}>
|
||||
|
|
|
@ -49,7 +49,6 @@ const ConnectExistingInstance = () => {
|
|||
Advanced
|
||||
</Button>
|
||||
</XStack>
|
||||
{/* two rows */}
|
||||
<ClientAddressRow />
|
||||
<BeackonAddress/>
|
||||
<Separator borderColor={'#e3e3e3'} />
|
||||
|
|
Loading…
Reference in New Issue