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} decimals={tokenMetas[t.token].decimals}
/> />
</span> </span>
<DecoratedAddressLink <AddressHighlighter address={t.token}>
address={t.token} <DecoratedAddressLink
text={ address={t.token}
tokenMetas[t.token] text={
? `${tokenMetas[t.token].name} (${tokenMetas[t.token].symbol})` tokenMetas[t.token]
: "" ? `${tokenMetas[t.token].name} (${tokenMetas[t.token].symbol})`
} : ""
tokenMeta={tokenMetas[t.token]} }
/> tokenMeta={tokenMetas[t.token]}
/>
</AddressHighlighter>
</div> </div>
</div> </div>
</div> </div>