2018-08-30 14:25:33 +00:00
|
|
|
import { connect } from 'react-redux';
|
2019-09-12 13:19:35 +00:00
|
|
|
import {
|
|
|
|
setRules,
|
|
|
|
getFilteringStatus,
|
|
|
|
handleRulesChange,
|
2020-01-22 14:25:50 +00:00
|
|
|
checkHost,
|
2019-09-12 13:19:35 +00:00
|
|
|
} from '../actions/filtering';
|
2020-02-26 16:58:25 +00:00
|
|
|
import CustomRules from '../components/Filters/CustomRules';
|
2018-08-30 14:25:33 +00:00
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
const { filtering } = state;
|
|
|
|
const props = { filtering };
|
|
|
|
return props;
|
|
|
|
};
|
|
|
|
|
2019-09-12 13:19:35 +00:00
|
|
|
const mapDispatchToProps = {
|
|
|
|
setRules,
|
|
|
|
getFilteringStatus,
|
|
|
|
handleRulesChange,
|
2020-01-22 14:25:50 +00:00
|
|
|
checkHost,
|
2019-09-12 13:19:35 +00:00
|
|
|
};
|
|
|
|
|
2018-08-30 14:25:33 +00:00
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
2019-09-12 13:19:35 +00:00
|
|
|
mapDispatchToProps,
|
2020-02-26 16:58:25 +00:00
|
|
|
)(CustomRules);
|