mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-10 16:46:35 +00:00
Change hardcoded ETH for nativeCoin symbol
This commit is contained in:
parent
8902f37e96
commit
15d98e2d84
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user