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
576 B

  1. import { connect } from 'react-redux';
  2. import FilterBar from '../components/filter_bar';
  3. import { setFilter } from '../../../actions/notifications';
  4. const makeMapStateToProps = state => ({
  5. selectedFilter: state.getIn(['settings', 'notifications', 'quickFilter', 'active']),
  6. advancedMode: state.getIn(['settings', 'notifications', 'quickFilter', 'advanced']),
  7. });
  8. const mapDispatchToProps = (dispatch) => ({
  9. selectFilter (newActiveFilter) {
  10. dispatch(setFilter(newActiveFilter));
  11. },
  12. });
  13. export default connect(makeMapStateToProps, mapDispatchToProps)(FilterBar);