Skip to content

Commit

Permalink
updated linea image for token and badge
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Jun 22, 2023
1 parent ed702af commit 00a5c6b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ui/components/multichain/token-list-item/token-list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export const TokenListItem = ({
const dataTheme = document.documentElement.getAttribute('data-theme');
const trackEvent = useContext(MetaMetricsContext);
const chainId = useSelector(getCurrentChainId);
const badgeWrapperImage =
title === 'LineaETH'
? './images/linea-logo-testnet.png'
: primaryTokenImage;
const badgeTokenImage =
title === 'LineaETH' ? './images/linea-logo-testnet.png' : tokenImage;

return (
<Box
Expand Down Expand Up @@ -80,9 +86,9 @@ export const TokenListItem = ({
<AvatarNetwork
size={Size.XS}
name={tokenSymbol}
src={primaryTokenImage}
src={badgeWrapperImage}
borderColor={
primaryTokenImage
badgeWrapperImage
? BorderColor.borderMuted
: BorderColor.borderDefault
}
Expand All @@ -92,10 +98,12 @@ export const TokenListItem = ({
>
<AvatarToken
name={tokenSymbol}
src={tokenImage}
src={badgeTokenImage}
showHalo
borderColor={
tokenImage ? BorderColor.transparent : BorderColor.borderDefault
badgeTokenImage
? BorderColor.transparent
: BorderColor.borderDefault
}
/>
</BadgeWrapper>
Expand Down

0 comments on commit 00a5c6b

Please sign in to comment.