2018-06-23 08:52:45 +02:00
|
|
|
import React, { Component } from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
2020-01-09 04:34:58 +01:00
|
|
|
import ConfirmTokenTransactionBaseContainer from '../confirm-token-transaction-base'
|
2019-03-22 00:03:30 +01:00
|
|
|
import { SEND_ROUTE } from '../../helpers/constants/routes'
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
export default class ConfirmSendToken extends Component {
|
|
|
|
static propTypes = {
|
|
|
|
history: PropTypes.object,
|
|
|
|
editTransaction: PropTypes.func,
|
2020-09-08 21:50:14 +02:00
|
|
|
tokenAmount: PropTypes.string,
|
2018-06-23 08:52:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
handleEdit (confirmTransactionData) {
|
|
|
|
const { editTransaction, history } = this.props
|
|
|
|
editTransaction(confirmTransactionData)
|
|
|
|
history.push(SEND_ROUTE)
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
2018-07-14 22:47:07 +02:00
|
|
|
const { tokenAmount } = this.props
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
return (
|
2020-01-09 04:34:58 +01:00
|
|
|
<ConfirmTokenTransactionBaseContainer
|
2020-02-15 21:34:12 +01:00
|
|
|
onEdit={(confirmTransactionData) => this.handleEdit(confirmTransactionData)}
|
2018-07-14 22:47:07 +02:00
|
|
|
tokenAmount={tokenAmount}
|
2018-06-23 08:52:45 +02:00
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|