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