Progress
This commit is contained in:
@@ -16,6 +16,7 @@ const mapStateToProps = state => ({
|
||||
pushSettings: state.get('push_notifications'),
|
||||
});
|
||||
|
||||
// : todo : put all notification settings actually IN settings
|
||||
const mapDispatchToProps = (dispatch, { intl }) => ({
|
||||
|
||||
onChange (path, checked) {
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
import { setFilter } from '../../../actions/notifications';
|
||||
import FilterBar from '../components/notification_filter_bar';
|
||||
|
||||
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);
|
||||
Reference in New Issue
Block a user