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

1234567891011121314151617181920
  1. // @flow
  2. import { ReducerRegistry } from '../base/redux';
  3. import { SET_SIDEBAR_VISIBLE } from './actionTypes';
  4. /**
  5. * Reduces redux actions for the purposes of {@code features/welcome}.
  6. */
  7. ReducerRegistry.register('features/welcome', (state = {}, action) => {
  8. switch (action.type) {
  9. case SET_SIDEBAR_VISIBLE:
  10. return {
  11. ...state,
  12. sideBarVisible: action.visible
  13. };
  14. default:
  15. return state;
  16. }
  17. });