p5.js-web-editor/client/modules/Sketch/reducers.js

13 lines
248 B
JavaScript
Raw Normal View History

2016-07-01 17:30:40 +02:00
import * as ActionTypes from '../../constants';
const sketches = (state = [], action) => {
switch (action.type) {
case ActionTypes.SET_PROJECTS:
return action.projects;
default:
return state;
}
};
export default sketches;