1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/ui/app/components/pages/confirm-approve/confirm-approve.container.js

16 lines
485 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux'
import ConfirmApprove from './confirm-approve.component'
import { approveTokenAmountAndToAddressSelector } from '../../../selectors/confirm-transaction'
const mapStateToProps = state => {
2018-07-15 08:36:42 +02:00
const { confirmTransaction: { tokenProps: { tokenSymbol } = {} } } = state
const { tokenAmount } = approveTokenAmountAndToAddressSelector(state)
return {
tokenAmount,
2018-07-15 08:36:42 +02:00
tokenSymbol,
}
}
export default connect(mapStateToProps)(ConfirmApprove)