Skip to content

Commit

Permalink
master rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rastajpa committed Aug 22, 2023
1 parent 004948d commit 8cf2c51
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/navigation/tabs/contacts/screens/ContactsAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const AddressBadge = styled.View`

const DomainBadge = styled.View`
position: absolute;
left: 5px;
left: 12px;
top: 52%;
z-index: 1;
`;
Expand Down Expand Up @@ -479,7 +479,7 @@ const ContactsAdd = ({
});
return;
}

if (addressValue && domainValue) {
contact.address = addressValue;
contact.domain = domainValue;
Expand Down Expand Up @@ -721,12 +721,15 @@ const ContactsAdd = ({
<>
<BoxInput
style={{
paddingLeft: validDomain && domainValue ? 30 : 12,
paddingLeft: validDomain && domainValue ? 40 : 12,
paddingRight: 45,
}}
placeholder={'Crypto address or domain'}
label={t('ADDRESS OR DOMAIN')}
onBlur={onBlur}
onChangeText={(newValue: string) => {
setValidDomain(false);
setDomainValue(undefined);
onChange(newValue);
processAddressOrDomain({address: newValue});
}}
Expand Down Expand Up @@ -781,7 +784,7 @@ const ContactsAdd = ({
label={t('DOMAIN')}
value={value?.domainName}
style={{
paddingLeft: 30,
paddingLeft: 40,
}}
/>
)}
Expand Down

0 comments on commit 8cf2c51

Please sign in to comment.