mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
16 lines
485 B
JavaScript
16 lines
485 B
JavaScript
import { connect } from 'react-redux'
|
|
import ConfirmApprove from './confirm-approve.component'
|
|
import { approveTokenAmountAndToAddressSelector } from '../../../selectors/confirm-transaction'
|
|
|
|
const mapStateToProps = state => {
|
|
const { confirmTransaction: { tokenProps: { tokenSymbol } = {} } } = state
|
|
const { tokenAmount } = approveTokenAmountAndToAddressSelector(state)
|
|
|
|
return {
|
|
tokenAmount,
|
|
tokenSymbol,
|
|
}
|
|
}
|
|
|
|
export default connect(mapStateToProps)(ConfirmApprove)
|