You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
812 B
30 lines
812 B
6 years ago
|
import React, { Component } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
6 years ago
|
import ConfirmTokenTransactionBase from '../confirm-token-transaction-base'
|
||
6 years ago
|
import { SEND_ROUTE } from '../../helpers/constants/routes'
|
||
6 years ago
|
|
||
|
export default class ConfirmSendToken extends Component {
|
||
|
static propTypes = {
|
||
|
history: PropTypes.object,
|
||
|
editTransaction: PropTypes.func,
|
||
6 years ago
|
tokenAmount: PropTypes.number,
|
||
6 years ago
|
}
|
||
|
|
||
|
handleEdit (confirmTransactionData) {
|
||
|
const { editTransaction, history } = this.props
|
||
|
editTransaction(confirmTransactionData)
|
||
|
history.push(SEND_ROUTE)
|
||
|
}
|
||
|
|
||
|
render () {
|
||
6 years ago
|
const { tokenAmount } = this.props
|
||
6 years ago
|
|
||
|
return (
|
||
6 years ago
|
<ConfirmTokenTransactionBase
|
||
6 years ago
|
onEdit={confirmTransactionData => this.handleEdit(confirmTransactionData)}
|
||
6 years ago
|
tokenAmount={tokenAmount}
|
||
6 years ago
|
/>
|
||
|
)
|
||
|
}
|
||
|
}
|