From 01a562996fa67a6ac7029112623e870eb79594e3 Mon Sep 17 00:00:00 2001 From: Izumi Hoshino Date: Fri, 16 Aug 2024 01:13:09 +0900 Subject: [PATCH] Hide tooltip for copying a wallet address --- .../wallets/src/components/WalletHistory.tsx | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/packages/wallets/src/components/WalletHistory.tsx b/packages/wallets/src/components/WalletHistory.tsx index 8b20792a59..f4a4017a5e 100644 --- a/packages/wallets/src/components/WalletHistory.tsx +++ b/packages/wallets/src/components/WalletHistory.tsx @@ -8,7 +8,6 @@ import { import { AddressBookContext, Card, - CopyToClipboard, Flex, StateColor, TableControlled, @@ -153,6 +152,24 @@ const getCols = (type: WalletType, isSyncing, getOfferRecord, navigate, location }); } + const addressEl = shouldObscureAddress ? ( + + This is not a valid address for sending funds to + + } + > + + {displayEmoji} {displayAddress} + + + ) : ( + + {displayEmoji} {displayAddress} + + ); + return ( To: - - {shouldObscureAddress && ( - - This is not a valid address for sending funds to - - )} - - {row.toAddress} - {!shouldObscureAddress && } - - - } - > - - {displayEmoji} {displayAddress} - - + {addressEl} {isIncomingClawback && (