p5.js-web-editor/client/modules/Sketch/reducers.js
2016-07-01 11:30:40 -04:00

12 lines
248 B
JavaScript

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;