|
|
@ -11,6 +11,7 @@ export default class ConfirmSendEther extends Component { |
|
|
|
static propTypes = { |
|
|
|
static propTypes = { |
|
|
|
editTransaction: PropTypes.func, |
|
|
|
editTransaction: PropTypes.func, |
|
|
|
history: PropTypes.object, |
|
|
|
history: PropTypes.object, |
|
|
|
|
|
|
|
txParams: PropTypes.object, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
handleEdit ({ txData }) { |
|
|
|
handleEdit ({ txData }) { |
|
|
@ -19,11 +20,18 @@ export default class ConfirmSendEther extends Component { |
|
|
|
history.push(SEND_ROUTE) |
|
|
|
history.push(SEND_ROUTE) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shouldHideData () { |
|
|
|
|
|
|
|
const { txParams = {} } = this.props |
|
|
|
|
|
|
|
return !txParams.data |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
|
|
|
|
const hideData = this.shouldHideData() |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<ConfirmTransactionBase |
|
|
|
<ConfirmTransactionBase |
|
|
|
action={this.context.t('confirm')} |
|
|
|
action={this.context.t('confirm')} |
|
|
|
hideData |
|
|
|
hideData={hideData} |
|
|
|
onEdit={confirmTransactionData => this.handleEdit(confirmTransactionData)} |
|
|
|
onEdit={confirmTransactionData => this.handleEdit(confirmTransactionData)} |
|
|
|
/> |
|
|
|
/> |
|
|
|
) |
|
|
|
) |
|
|
|