add missing parameters to TransferDescription (#1686)

This commit is contained in:
Fernando 2020-12-09 20:25:20 -03:00 committed by GitHub
parent 2fe1fb2794
commit 4079ff9abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import SettingsDescription from './SettingsDescription'
import CustomDescription from './CustomDescription' import CustomDescription from './CustomDescription'
import TransferDescription from './TransferDescription' import TransferDescription from './TransferDescription'
import { getTxAmount } from 'src/routes/safe/components/Transactions/TxsTable/columns' import { getRawTxAmount, getTxAmount } from 'src/routes/safe/components/Transactions/TxsTable/columns'
import Block from 'src/components/layout/Block' import Block from 'src/components/layout/Block'
import { Transaction, TransactionTypes } from 'src/logic/safe/store/models/types/transaction' import { Transaction, TransactionTypes } from 'src/logic/safe/store/models/types/transaction'
@ -33,8 +33,9 @@ const UpgradeDescriptionTx = ({ tx }: { tx: Transaction }): React.ReactElement =
const TransferDescriptionTx = ({ tx }: { tx: Transaction }): React.ReactElement => { const TransferDescriptionTx = ({ tx }: { tx: Transaction }): React.ReactElement => {
const amountWithSymbol = getTxAmount(tx, false) const amountWithSymbol = getTxAmount(tx, false)
const { recipient, isTokenTransfer = false } = getTxData(tx) const rawAmount = getRawTxAmount(tx)
return <TransferDescription {...{ amountWithSymbol, recipient, isTokenTransfer }} /> const { recipient, isTokenTransfer = false, tokenAddress } = getTxData(tx)
return <TransferDescription {...{ amountWithSymbol, recipient, isTokenTransfer, rawAmount, tokenAddress }} />
} }
const TxDescription = ({ tx }: { tx: Transaction }): React.ReactElement => { const TxDescription = ({ tx }: { tx: Transaction }): React.ReactElement => {