basic frontend demo with react and redux

This commit is contained in:
egradanin
2019-01-12 14:09:17 +01:00
parent 204985db42
commit a431c58763
53 changed files with 19185 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { SUBCATEGORY_SELECT, CATEGORY_SELECT } from "constants/actionTypes";
export default (state = null, action) => {
switch (action.type) {
case SUBCATEGORY_SELECT:
return action.option;
case CATEGORY_SELECT:
return null;
default:
return state;
}
};