summaryrefslogtreecommitdiff
path: root/frontend/views/index/graph.reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/views/index/graph.reducer.js')
-rw-r--r--frontend/views/index/graph.reducer.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/frontend/views/index/graph.reducer.js b/frontend/views/index/graph.reducer.js
new file mode 100644
index 0000000..612ac14
--- /dev/null
+++ b/frontend/views/index/graph.reducer.js
@@ -0,0 +1,20 @@
+import * as types from '../../types'
+// import { session, getDefault, getDefaultInt } from '../../session'
+
+import { crudState, crudReducer } from '../../api/crud.reducer'
+
+const initialState = crudState('graph', {
+ options: {
+ }
+})
+
+const reducer = crudReducer('graph')
+
+export default function graphReducer(state = initialState, action) {
+ // console.log(action.type, action)
+ state = reducer(state, action)
+ switch (action.type) {
+ default:
+ return state
+ }
+}