Skip to content

Commit

Permalink
fixup! feat(suite-native): ripple asks for destination tag by default…
Browse files Browse the repository at this point in the history
… in send
  • Loading branch information
vytick committed Feb 11, 2025
1 parent 9cd5d10 commit cee7ba0
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions suite-native/receive/src/screens/ReceiveAddressScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export const ReceiveAddressScreen = ({
const isConfirmOnTrezorReady =
isUnverifiedAddressRevealed && !isReceiveApproved && hasReceiveButtonRequest;

const showXrpInfo = account.networkType === 'ripple';

return (
<Screen
header={
Expand All @@ -88,27 +90,29 @@ export const ReceiveAddressScreen = ({
>
<Box flex={1}>
<VStack marginTop="sp8" spacing="sp16">
<AlertBox
variant="info"
contentColor="textDefault"
title={
<Translation
id="moduleReceive.xrpDestinationTag"
values={{
link: chunk => (
<Link
label={chunk}
textVariant="label"
href="https://trezor.io/learn/a/destination-tags"
isUnderlined
textColor="textDefault"
textPressedColor="textSubdued"
/>
),
}}
/>
}
/>
{showXrpInfo && (
<AlertBox
variant="info"
contentColor="textDefault"
title={
<Translation
id="moduleReceive.xrpDestinationTag"
values={{
link: chunk => (
<Link
label={chunk}
textVariant="label"
href="https://trezor.io/learn/a/destination-tags"
isUnderlined
textColor="textDefault"
textPressedColor="textSubdued"
/>
),
}}
/>
}
/>
)}
{isAccountDetailVisible && (
<AccountDetailsCard accountKey={accountKey} tokenContract={tokenContract} />
)}
Expand Down

0 comments on commit cee7ba0

Please sign in to comment.