2018-06-23 08:52:45 +02:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import ConfirmApprove from './confirm-approve.component'
|
2019-03-22 00:03:30 +01:00
|
|
|
import { approveTokenAmountAndToAddressSelector } from '../../selectors/confirm-transaction'
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
const mapStateToProps = state => {
|
2018-07-15 08:36:42 +02:00
|
|
|
const { confirmTransaction: { tokenProps: { tokenSymbol } = {} } } = state
|
2018-07-14 22:47:07 +02:00
|
|
|
const { tokenAmount } = approveTokenAmountAndToAddressSelector(state)
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
tokenAmount,
|
2018-07-15 08:36:42 +02:00
|
|
|
tokenSymbol,
|
2018-06-23 08:52:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(ConfirmApprove)
|