feat: change checks for port inputs

This commit is contained in:
RadoslavDimchev 2024-01-07 19:55:59 +02:00
parent 836521aee4
commit ac033ba62a

View File

@ -80,14 +80,9 @@ const InputsRow = ({
</Text> </Text>
<Input value={address} onChangeText={onAddressChange} /> <Input value={address} onChangeText={onAddressChange} />
</YStack> </YStack>
{isAdvanced ? ( {isAdvanced === true && <PortInput port={port} portType={portType} />}
<PortInput port={port} portType={portType} /> {isAdvanced === false && <PortInput port={vcPort} portType={VC} />}
) : ( {isAdvanced === false && <PortInput port={beaconPort} portType={BEACON} />}
<XStack space={'$3'} flexGrow={4} flexBasis={0}>
<PortInput port={vcPort} portType={VC} />
<PortInput port={beaconPort} portType={BEACON} />
</XStack>
)}
<div style={{ display: 'flex', alignItems: 'end', height: '100%' }}> <div style={{ display: 'flex', alignItems: 'end', height: '100%' }}>
<Stack height={'46%'} flexBasis={0} flexGrow={0.5}> <Stack height={'46%'} flexBasis={0} flexGrow={0.5}>
<Checkbox <Checkbox