From df56bfc2deef6abc797e9582b32db0034c776df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ca=CC=81ssio=20Marcos=20Goulart?= Date: Wed, 15 Jan 2025 11:44:35 -0800 Subject: [PATCH] Display stellar logo for XLM transfer invocations --- .../accountHistory/HistoryItem/index.tsx | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/extension/src/popup/components/accountHistory/HistoryItem/index.tsx b/extension/src/popup/components/accountHistory/HistoryItem/index.tsx index 282a5908d..9b9316502 100644 --- a/extension/src/popup/components/accountHistory/HistoryItem/index.tsx +++ b/extension/src/popup/components/accountHistory/HistoryItem/index.tsx @@ -608,7 +608,8 @@ export const HistoryItem = ({ } const { symbol, decimals } = tokenDetailsResponse!; - const code = symbol === "native" ? "XLM" : symbol; + const isNative = symbol === "native"; + const code = isNative ? "XLM" : symbol; const formattedTokenAmount = formatTokenAmount( new BigNumber(attrs.amount), decimals, @@ -623,8 +624,22 @@ export const HistoryItem = ({ , ); setIconComponent( -
- + <> + {isNative && ( + + )} + {!isNative && ( +
+ +
+ )} {_isRecipient && (
@@ -635,7 +650,7 @@ export const HistoryItem = ({
)} -
, + , ); setRowText(code); setDateText(