Skip to content

Commit 5240636

Browse files
author
Nabi
committed
fix: show checkmark icon when user copies
1 parent abdfbff commit 5240636

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/settings/Wallet/TravelCVVPage/TravelCVVPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function TravelCVVPage() {
3333
const [isCopyButtonActive, setCopyButtonInactive] = useThrottledButtonState();
3434
const {isOffline} = useNetwork();
3535
const {translate} = useLocalize();
36-
const icons = useMemoizedLazyExpensifyIcons(['Copy']);
36+
const icons = useMemoizedLazyExpensifyIcons(['Copy', 'Checkmark']);
3737

3838
const [account, accountMetadata] = useOnyx(ONYXKEYS.ACCOUNT);
3939
const [, lockAccountDetailsMetadata] = useOnyx(ONYXKEYS.NVP_PRIVATE_LOCK_ACCOUNT_DETAILS);
@@ -119,7 +119,7 @@ function TravelCVVPage() {
119119
if (hasRevealedCVV) {
120120
actionButton = (
121121
<Button
122-
icon={icons.Copy}
122+
icon={isCopyButtonActive ? icons.Copy : icons.Checkmark}
123123
text={isCopyButtonActive ? translate('cardPage.cardDetails.copyCvv') : translate('common.copied')}
124124
onPress={() => {
125125
Clipboard.setString(cvv);

0 commit comments

Comments
 (0)