From d192242065ee35ca922c1433a5ea5eb83422261c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 27 Jun 2020 17:03:30 +0200 Subject: building... --- .../frontend/views/timestamp/timestamp.reducer.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 animism-align/frontend/views/timestamp/timestamp.reducer.js (limited to 'animism-align/frontend/views/timestamp/timestamp.reducer.js') diff --git a/animism-align/frontend/views/timestamp/timestamp.reducer.js b/animism-align/frontend/views/timestamp/timestamp.reducer.js new file mode 100644 index 0000000..cf18966 --- /dev/null +++ b/animism-align/frontend/views/timestamp/timestamp.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('timestamp', { + options: { + } +}) + +const reducer = crudReducer('timestamp') + +export default function timestampReducer(state = initialState, action) { + // console.log(action.type, action) + state = reducer(state, action) + switch (action.type) { + default: + return state + } +} -- cgit v1.2.3-70-g09d2