From 3b00ca8991f7092aa1cb3d584df12a0368f4fa4b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 16:20:01 +0200 Subject: form works! add graph reducer, fonts --- frontend/views/index/graph.reducer.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 frontend/views/index/graph.reducer.js (limited to 'frontend/views/index/graph.reducer.js') 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 + } +} -- cgit v1.2.3-70-g09d2