|
|
@ -11,7 +11,7 @@ import { |
|
|
|
getShouldShowFiat, |
|
|
|
getShouldShowFiat, |
|
|
|
getNativeCurrencyImage, |
|
|
|
getNativeCurrencyImage, |
|
|
|
getDetectedTokensInCurrentNetwork, |
|
|
|
getDetectedTokensInCurrentNetwork, |
|
|
|
getIstokenDetectionInactiveOnNonMainnetSupportedNetwork, |
|
|
|
getDisplayDetectedTokensLink, |
|
|
|
} from '../../../selectors'; |
|
|
|
} from '../../../selectors'; |
|
|
|
import { getNativeCurrency } from '../../../ducks/metamask/metamask'; |
|
|
|
import { getNativeCurrency } from '../../../ducks/metamask/metamask'; |
|
|
|
import { useCurrencyDisplay } from '../../../hooks/useCurrencyDisplay'; |
|
|
|
import { useCurrencyDisplay } from '../../../hooks/useCurrencyDisplay'; |
|
|
@ -66,9 +66,7 @@ const AssetList = ({ onClickAsset }) => { |
|
|
|
|
|
|
|
|
|
|
|
const primaryTokenImage = useSelector(getNativeCurrencyImage); |
|
|
|
const primaryTokenImage = useSelector(getNativeCurrencyImage); |
|
|
|
const detectedTokens = useSelector(getDetectedTokensInCurrentNetwork) || []; |
|
|
|
const detectedTokens = useSelector(getDetectedTokensInCurrentNetwork) || []; |
|
|
|
const istokenDetectionInactiveOnNonMainnetSupportedNetwork = useSelector( |
|
|
|
const displayDetectedTokensLink = useSelector(getDisplayDetectedTokensLink); |
|
|
|
getIstokenDetectionInactiveOnNonMainnetSupportedNetwork, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
@ -96,10 +94,9 @@ const AssetList = ({ onClickAsset }) => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
{detectedTokens.length > 0 && |
|
|
|
{detectedTokens.length > 0 && displayDetectedTokensLink && ( |
|
|
|
!istokenDetectionInactiveOnNonMainnetSupportedNetwork && ( |
|
|
|
<DetectedTokensLink setShowDetectedTokens={setShowDetectedTokens} /> |
|
|
|
<DetectedTokensLink setShowDetectedTokens={setShowDetectedTokens} /> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
<Box marginTop={detectedTokens.length > 0 ? 0 : 4}> |
|
|
|
<Box marginTop={detectedTokens.length > 0 ? 0 : 4}> |
|
|
|
<Box justifyContent={JUSTIFY_CONTENT.CENTER}> |
|
|
|
<Box justifyContent={JUSTIFY_CONTENT.CENTER}> |
|
|
|
<Typography |
|
|
|
<Typography |
|
|
|