summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/timestamp/timestamp.reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/views/timestamp/timestamp.reducer.js')
-rw-r--r--animism-align/frontend/views/timestamp/timestamp.reducer.js20
1 files changed, 20 insertions, 0 deletions
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
+ }
+}