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

123456789101112131415161718
  1. import { ReducerRegistry } from '../base/redux';
  2. import { SET_VISIBLE_PANEL } from './actionTypes';
  3. /**
  4. * Reduces the Redux actions of the feature features/side-panel.
  5. */
  6. ReducerRegistry.register('features/side-panel', (state = {}, action) => {
  7. switch (action.type) {
  8. case SET_VISIBLE_PANEL:
  9. return {
  10. ...state,
  11. current: action.current
  12. };
  13. }
  14. return state;
  15. });