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

1234567891011121314151617181920212223
  1. import { ReducerRegistry } from '../base/redux';
  2. import { SET_SIDEBAR_VISIBILITY } from './actionTypes';
  3. const DEFAULT_STATE = {
  4. sideBarVisible: false
  5. };
  6. /**
  7. * Reduces the Redux actions of the feature features/recording.
  8. */
  9. ReducerRegistry.register('features/welcome',
  10. (state = DEFAULT_STATE, action) => {
  11. switch (action.type) {
  12. case SET_SIDEBAR_VISIBILITY:
  13. return {
  14. ...state,
  15. sideBarVisible: action.sideBarVisible
  16. };
  17. default:
  18. return state;
  19. }
  20. });