diff options
Diffstat (limited to 'animism-align/frontend/app/views/project/project.reducer.js')
| -rw-r--r-- | animism-align/frontend/app/views/project/project.reducer.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/project/project.reducer.js b/animism-align/frontend/app/views/project/project.reducer.js new file mode 100644 index 0000000..8d38b72 --- /dev/null +++ b/animism-align/frontend/app/views/project/project.reducer.js @@ -0,0 +1,18 @@ +// import * as types from 'app/types' + +import { crudState, crudReducer } from 'app/api/crud.reducer' + +const initialState = crudState('project', { + options: {}, +}) + +const reducer = crudReducer('project') + +export default function projectReducer(state = initialState, action) { + // console.log(action.type, action) + state = reducer(state, action) + switch (action.type) { + default: + return state + } +} |
