Skip to content

Commit

Permalink
Display stellar logo for XLM transfer invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
CassioMG committed Jan 15, 2025
1 parent e485309 commit df56bfc
Showing 1 changed file with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -623,8 +624,22 @@ export const HistoryItem = ({
</Badge>,
);
setIconComponent(
<div className="HistoryItem__icon__bordered">
<Icon.User01 />
<>
{isNative && (
<AssetSds
size="lg"
variant="single"
sourceOne={{
altText: "Stellar token logo",
image: StellarLogo,
}}
/>
)}
{!isNative && (
<div className="HistoryItem__icon__bordered">
<Icon.User01 />
</div>
)}
{_isRecipient && (
<div className="HistoryItem__icon__small HistoryItem--received">
<Icon.ArrowDown />
Expand All @@ -635,7 +650,7 @@ export const HistoryItem = ({
<Icon.Send03 />
</div>
)}
</div>,
</>,
);
setRowText(code);
setDateText(
Expand Down

0 comments on commit df56bfc

Please sign in to comment.