Skip to content

Commit

Permalink
fix(wallet-mobile): tx history actions banner receive address copied …
Browse files Browse the repository at this point in the history
…feedback
  • Loading branch information
banklesss committed Dec 10, 2024
1 parent e81d049 commit 8ada369
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const useStrings = () => {
SELF: intl.formatMessage(txTypeMessages.SELF),
MULTI: intl.formatMessage(txTypeMessages.MULTI),
assetsLabel: intl.formatMessage(globalMessages.assetsLabel),
copiedLabel: intl.formatMessage(messages.copiedLabel),
}
}

Expand Down Expand Up @@ -179,6 +180,10 @@ export const messages = defineMessages({
id: 'components.receive.addressmodal.copyLabel',
defaultMessage: '!!!Copy address',
},
copiedLabel: {
id: 'components.receive.addressmodal.copiedLabel',
defaultMessage: '!!!Address Copied',
},
spending: {
id: 'components.receive.addressmodal.spendingKeyHash',
defaultMessage: '!!!Spending',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {

const handleOnLongPressReceive = (event: GestureResponderEvent) => {
track.receiveCopyAddressClicked({copy_address_location: 'Long Press wallet Address'})
copy({text: nextReceiveAddress, event})
copy({text: nextReceiveAddress, event, feedback: strings.copiedLabel})
}

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/kernel/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
"components.pooltransition.updateKeepEarning": "Update now and keep earning",
"components.pooltransition.update": "Update pool",
"components.receive.addressmodal.BIP32path": "Derivation path",
"components.receive.addressmodal.copiedLabel": "Copied",
"components.receive.addressmodal.copiedLabel": "Address Copied",
"components.receive.addressmodal.copyLabel": "Copy address",
"components.receive.addressmodal.spendingKeyHash": "Spending key hash",
"components.receive.addressmodal.stakingKeyHash": "Staking key hash",
Expand Down
Loading

0 comments on commit 8ada369

Please sign in to comment.