cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
20 lines (18 loc) • 452 B
JavaScript
import constants from '../constants';
const initialState = {
isWMSOpen: false
};
export default function update(state = initialState, action = {}) {
switch (action.type) {
case constants.wms.OPEN_WMS_MANAGER:
return Object.assign({}, state, {
isWMSOpen: true,
});
case constants.wms.CLOSE_WMS_MANAGER:
return Object.assign({}, state, {
isWMSOpen: false,
});
default :
return state;
}
};