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

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