jiti-meet/react/features/base/modal/reducer.js

18 lines
367 B
JavaScript
Raw Normal View History

2020-03-30 15:26:15 +00:00
// @flow
import { ReducerRegistry } from '../redux';
import { SET_ACTIVE_MODAL_ID } from './actionTypes';
ReducerRegistry.register('features/base/modal', (state = {}, action) => {
switch (action.type) {
case SET_ACTIVE_MODAL_ID:
return {
...state,
activeModalId: action.activeModalId
};
}
return state;
});