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.

reducer.js 370B

1234567891011121314151617
  1. // @flow
  2. import { ReducerRegistry } from '../base/redux';
  3. import { SET_SETTINGS_VIEW_VISIBLE } from './actionTypes';
  4. ReducerRegistry.register('features/settings', (state = {}, action) => {
  5. switch (action.type) {
  6. case SET_SETTINGS_VIEW_VISIBLE:
  7. return {
  8. ...state,
  9. visible: action.visible
  10. };
  11. }
  12. return state;
  13. });