Apply address highlighting to token names

This commit is contained in:
Willian Mitsuda 2021-07-19 15:00:15 -03:00
parent 83af14259b
commit bd42170050
1 changed files with 11 additions and 9 deletions

View File

@ -57,15 +57,17 @@ const TokenTransferItem: React.FC<TokenTransferItemProps> = ({
decimals={tokenMetas[t.token].decimals}
/>
</span>
<DecoratedAddressLink
address={t.token}
text={
tokenMetas[t.token]
? `${tokenMetas[t.token].name} (${tokenMetas[t.token].symbol})`
: ""
}
tokenMeta={tokenMetas[t.token]}
/>
<AddressHighlighter address={t.token}>
<DecoratedAddressLink
address={t.token}
text={
tokenMetas[t.token]
? `${tokenMetas[t.token].name} (${tokenMetas[t.token].symbol})`
: ""
}
tokenMeta={tokenMetas[t.token]}
/>
</AddressHighlighter>
</div>
</div>
</div>