jiti-meet/react/features/welcome/reducer.js

21 lines
459 B
JavaScript
Raw Normal View History

// @flow
2018-02-02 14:50:16 +00:00
import { ReducerRegistry } from '../base/redux';
import { SET_SIDEBAR_VISIBLE } from './actionTypes';
2018-02-02 14:50:16 +00:00
/**
* Reduces redux actions for the purposes of {@code features/welcome}.
2018-02-02 14:50:16 +00:00
*/
ReducerRegistry.register('features/welcome', (state = {}, action) => {
switch (action.type) {
case SET_SIDEBAR_VISIBLE:
return {
...state,
sideBarVisible: action.visible
};
2018-02-02 14:50:16 +00:00
default:
return state;
}
});