p5.js-web-editor/client/modules/IDE/reducers/editorHidden.js
2016-08-10 11:13:17 -04:00

16 lines
360 B
JavaScript

import * as ActionTypes from '../../../constants';
const initialState = {
enableBeep: false
};
const editorHidden = (state = initialState, action) => {
switch (action.type) {
case ActionTypes.TOGGLE_BEEP:
return Object.assign({}, state, { enableBeep: !state.enableBeep });
default:
return state;
}
};
export default editorHidden;