您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. });