diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:20:01 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:20:01 +0200 |
| commit | 3b00ca8991f7092aa1cb3d584df12a0368f4fa4b (patch) | |
| tree | 47efdb9f7dbbd226fd7c43111e7e052467f47618 /frontend/views/index/graph.reducer.js | |
| parent | 2db55c3d261ddee52019bbd06dc5f6545db39c16 (diff) | |
form works! add graph reducer, fonts
Diffstat (limited to 'frontend/views/index/graph.reducer.js')
| -rw-r--r-- | frontend/views/index/graph.reducer.js | 20 |
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 + } +} |
