Created
August 9, 2018 16:26
-
-
Save MacgyverMartins/6522dd02dee46a1eed29da08c08a1fbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { rangeCustomersBy } from '../actions/filter.actions'; | |
class MainFilterCont extends Component { | |
// code | |
} | |
const mapDispatchToProps = { | |
rangeCustomersBy | |
}; | |
const mapStateToProps = state => ({ | |
filter: state.filter | |
}) | |
export default connect( | |
mapStateToProps, | |
mapDispatchToProps | |
)(MainFilterCont); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment