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.
16 lines
482 B
16 lines
482 B
7 years ago
|
import { connect } from 'react-redux'
|
||
|
import ConfirmApprove from './confirm-approve.component'
|
||
6 years ago
|
import { approveTokenAmountAndToAddressSelector } from '../../selectors/confirm-transaction'
|
||
7 years ago
|
|
||
|
const mapStateToProps = state => {
|
||
6 years ago
|
const { confirmTransaction: { tokenProps: { tokenSymbol } = {} } } = state
|
||
6 years ago
|
const { tokenAmount } = approveTokenAmountAndToAddressSelector(state)
|
||
7 years ago
|
|
||
|
return {
|
||
|
tokenAmount,
|
||
6 years ago
|
tokenSymbol,
|
||
7 years ago
|
}
|
||
|
}
|
||
|
|
||
|
export default connect(mapStateToProps)(ConfirmApprove)
|