11import { EdgeCurrencyWallet , EdgeToken } from 'edge-core-js'
22import * as React from 'react'
33
4+ import { SPECIAL_CURRENCY_INFO } from '../../../constants/WalletAndCurrencyConstants'
45import { useWalletBalance } from '../../../hooks/useWalletBalance'
56import { useWalletName } from '../../../hooks/useWalletName'
67import { useSelector } from '../../../types/reactRedux'
@@ -36,6 +37,8 @@ interface Props {
3637const CurrencyRowComponent = ( props : Props ) => {
3738 const { customAsset, marginRem, showRate = false , token, tokenId } = props
3839 const wallet = customAsset ?. wallet ?? props . wallet
40+ const { pluginId } = wallet . currencyInfo
41+ const showTokenNames = SPECIAL_CURRENCY_INFO [ pluginId ] ?. showTokenNames
3942
4043 // Currency code and wallet name for display:
4144 const allTokens = wallet . currencyConfig . allTokens
@@ -56,10 +59,15 @@ const CurrencyRowComponent = (props: Props) => {
5659 const fiatText = showBalance ? < FiatText nativeCryptoAmount = { balance } tokenId = { displayTokenId } wallet = { wallet } /> : null
5760 const icon = < CryptoIcon sizeRem = { 2 } tokenId = { displayTokenId } walletId = { wallet . id } />
5861
62+ let displayCurrencyCode = currencyCode
63+ if ( showTokenNames === true && tokenFromId != null ) {
64+ displayCurrencyCode = `${ tokenFromId . displayName } `
65+ }
66+
5967 return (
6068 < IconDataRow
6169 icon = { icon }
62- leftText = { currencyCode }
70+ leftText = { displayCurrencyCode }
6371 leftTextExtended = { tickerText }
6472 leftSubtext = { name }
6573 rightText = { cryptoText }
0 commit comments