diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-27 17:03:30 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-27 17:03:30 +0200 |
| commit | d192242065ee35ca922c1433a5ea5eb83422261c (patch) | |
| tree | 4fccba2be155d85efd58e7b41cee9cc705ea2955 /animism-align/frontend/views/timestamp/timestamp.reducer.js | |
| parent | 9beb386885dabad504235e446e7b301829c04265 (diff) | |
building...
Diffstat (limited to 'animism-align/frontend/views/timestamp/timestamp.reducer.js')
| -rw-r--r-- | animism-align/frontend/views/timestamp/timestamp.reducer.js | 20 |
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 + } +} |
