|
|
@ -59,6 +59,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
tokenData: PropTypes.object, |
|
|
|
tokenData: PropTypes.object, |
|
|
|
tokenProps: PropTypes.object, |
|
|
|
tokenProps: PropTypes.object, |
|
|
|
toName: PropTypes.string, |
|
|
|
toName: PropTypes.string, |
|
|
|
|
|
|
|
toNickname: PropTypes.string, |
|
|
|
transactionStatus: PropTypes.string, |
|
|
|
transactionStatus: PropTypes.string, |
|
|
|
txData: PropTypes.object, |
|
|
|
txData: PropTypes.object, |
|
|
|
unapprovedTxCount: PropTypes.number, |
|
|
|
unapprovedTxCount: PropTypes.number, |
|
|
@ -529,6 +530,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
fromAddress, |
|
|
|
fromAddress, |
|
|
|
toName, |
|
|
|
toName, |
|
|
|
toAddress, |
|
|
|
toAddress, |
|
|
|
|
|
|
|
toNickname, |
|
|
|
methodData, |
|
|
|
methodData, |
|
|
|
valid: propsValid = true, |
|
|
|
valid: propsValid = true, |
|
|
|
errorMessage, |
|
|
|
errorMessage, |
|
|
@ -551,13 +553,13 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
const { name } = methodData |
|
|
|
const { name } = methodData |
|
|
|
const { valid, errorKey } = this.getErrorKey() |
|
|
|
const { valid, errorKey } = this.getErrorKey() |
|
|
|
const { totalTx, positionOfCurrentTx, nextTxId, prevTxId, showNavigation, firstTx, lastTx, ofText, requestsWaitingText } = this.getNavigateTxData() |
|
|
|
const { totalTx, positionOfCurrentTx, nextTxId, prevTxId, showNavigation, firstTx, lastTx, ofText, requestsWaitingText } = this.getNavigateTxData() |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<ConfirmPageContainer |
|
|
|
<ConfirmPageContainer |
|
|
|
fromName={fromName} |
|
|
|
fromName={fromName} |
|
|
|
fromAddress={fromAddress} |
|
|
|
fromAddress={fromAddress} |
|
|
|
toName={toName} |
|
|
|
toName={toName} |
|
|
|
toAddress={toAddress} |
|
|
|
toAddress={toAddress} |
|
|
|
|
|
|
|
toNickname={toNickname} |
|
|
|
showEdit={onEdit && !isTxReprice} |
|
|
|
showEdit={onEdit && !isTxReprice} |
|
|
|
// In the event that the key is falsy (and inherently invalid), use a fallback string
|
|
|
|
// In the event that the key is falsy (and inherently invalid), use a fallback string
|
|
|
|
action={getMethodName(name) || this.context.tOrKey(transactionCategory) || this.context.t('contractInteraction')} |
|
|
|
action={getMethodName(name) || this.context.tOrKey(transactionCategory) || this.context.t('contractInteraction')} |
|
|
|