Change hardcoded ETH for nativeCoin symbol

This commit is contained in:
Daniel Sanchez 2021-03-30 09:39:15 +02:00
parent 8902f37e96
commit 15d98e2d84

View File

@ -5,7 +5,7 @@ import { Text, EthHashInfo, CopyToClipboardBtn, IconText, FixedIcon } from '@gno
import get from 'lodash.get'
import { web3ReadOnly as web3 } from 'src/logic/wallets/getWeb3'
import { getExplorerInfo } from 'src/config'
import { getExplorerInfo, getNetworkInfo } from 'src/config'
import { DecodedData, DecodedDataBasicParameter, DecodedDataParameterValue } from 'src/types/transactions/decode.d'
import { DecodedTxDetail } from 'src/routes/safe/components/Apps/components/ConfirmTxModal'
@ -58,12 +58,14 @@ export const BasicTxInfo = ({
txData: string
txValue: string
}): ReactElement => {
const { nativeCoin } = getNetworkInfo()
return (
<BasicTxInfoWrapper>
{/* TO */}
<>
<Text size="lg" strong>
{`Send ${txValue} ETH to:`}
{`Send ${txValue} ${nativeCoin.symbol} to:`}
</Text>
<EthHashInfo
hash={txRecipient}