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.
17 lines
576 B
17 lines
576 B
6 years ago
|
import { connect } from 'react-redux';
|
||
|
import FilterBar from '../components/filter_bar';
|
||
|
import { setFilter } from '../../../actions/notifications';
|
||
|
|
||
|
const makeMapStateToProps = state => ({
|
||
|
selectedFilter: state.getIn(['settings', 'notifications', 'quickFilter', 'active']),
|
||
|
advancedMode: state.getIn(['settings', 'notifications', 'quickFilter', 'advanced']),
|
||
|
});
|
||
|
|
||
|
const mapDispatchToProps = (dispatch) => ({
|
||
|
selectFilter (newActiveFilter) {
|
||
|
dispatch(setFilter(newActiveFilter));
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export default connect(makeMapStateToProps, mapDispatchToProps)(FilterBar);
|