2018-02-26 16:14:46 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { ReducerRegistry } from '../base/redux';
|
|
|
|
|
2020-03-27 17:17:27 +00:00
|
|
|
import { SET_SETTINGS_VIEW_VISIBLE } from './actionTypes';
|
2018-02-26 16:14:46 +00:00
|
|
|
|
|
|
|
ReducerRegistry.register('features/settings', (state = {}, action) => {
|
|
|
|
switch (action.type) {
|
|
|
|
case SET_SETTINGS_VIEW_VISIBLE:
|
|
|
|
return {
|
|
|
|
...state,
|
|
|
|
visible: action.visible
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
return state;
|
|
|
|
});
|