feat: change widths of address and port inputs

This commit is contained in:
RadoslavDimchev 2023-12-28 22:01:11 +02:00
parent 30f4b80366
commit d2007e6bb1
1 changed files with 15 additions and 11 deletions

View File

@ -67,20 +67,24 @@ const AddressAndPortInputs = ({ addressType, portType, isAdvanced }: AddressAndP
</YStack>
<YStack space={'$2'}>
<Text size={13} color={'#647084'} weight={'semibold'}>
{addressType} Address
</Text>
<Input placeholder={''} value={address} onChangeText={onAddressChangeHandler} />
</YStack>
{isAdvanced === false ? (
<></>
) : (
<YStack space={'$2'}>
<div style={{ display: 'flex' }}>
<YStack space={'$2'} style={{ width: '60%' }}>
<Text size={13} color={'#647084'} weight={'semibold'}>
{portType} Port
{addressType} Address
</Text>
<Input value={port} onChangeText={onPortChangeHandler} />
<Input value={address} onChangeText={onAddressChangeHandler} />
</YStack>
)}
{isAdvanced === false ? (
<></>
) : (
<YStack space={'$2'} style={{ width: '40%' }}>
<Text size={13} color={'#647084'} weight={'semibold'}>
{portType} Port
</Text>
<Input value={port} onChangeText={onPortChangeHandler} />
</YStack>
)}
</div>
<Stack
style={{ alignItems: 'center', justifyContent: 'center' }}
height={'100%'}