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