Skip to content

Commit

Permalink
wallet opts
Browse files Browse the repository at this point in the history
  • Loading branch information
rastajpa committed Apr 24, 2023
1 parent ce26fe4 commit c0bfa2a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
4 changes: 1 addition & 3 deletions src/navigation/tabs/contacts/screens/ContactsAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,7 @@ const ContactsAdd = ({
setDomainValue(_domain);
setValidDomain(true);
}
} catch (err) {
console.error(err);
}
} catch (e) {}
};

useEffect(() => {
Expand Down
56 changes: 29 additions & 27 deletions src/navigation/wallet/screens/WalletDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,30 +359,34 @@ const WalletDetails: React.FC<WalletDetailsScreenProps> = ({route}) => {
const ShareAddress = async () => {
try {
await sleep(1000);
const address = (await dispatch<any>(
createWalletAddress({wallet: fullWalletObj, newAddress: false}),
)) as string;

Share.share(
{
message: address,
title: t('Share Address'),
},
{
dialogTitle: t('Share Address'),
subject: t('Share Address'),
excludedActivityTypes: [
'print',
'addToReadingList',
'markupAsPDF',
'openInIbooks',
'postToFacebook',
'postToTwitter',
'saveToCameraRoll',
'sharePlay',
],
},
);
if (showShareAddressIcon) {
setShowShareAddressModal(true);
} else {
const address = (await dispatch<any>(
createWalletAddress({wallet: fullWalletObj, newAddress: false}),
)) as string;

Share.share(
{
message: address,
title: t('Share Address'),
},
{
dialogTitle: t('Share Address'),
subject: t('Share Address'),
excludedActivityTypes: [
'print',
'addToReadingList',
'markupAsPDF',
'openInIbooks',
'postToFacebook',
'postToTwitter',
'saveToCameraRoll',
'sharePlay',
],
},
);
}
} catch (e) {}
};

Expand Down Expand Up @@ -506,9 +510,7 @@ const WalletDetails: React.FC<WalletDetailsScreenProps> = ({route}) => {
if (domainName) {
setDomain({domainName, domainType: 'ENSDomain'});
}
} catch (err) {
console.error(err);
}
} catch (e) {}
}, 300),
[],
);
Expand Down

0 comments on commit c0bfa2a

Please sign in to comment.