diff options
Diffstat (limited to 'animism-align/frontend/app/views/paragraph/paragraph.reducer.js')
| -rw-r--r-- | animism-align/frontend/app/views/paragraph/paragraph.reducer.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/animism-align/frontend/app/views/paragraph/paragraph.reducer.js b/animism-align/frontend/app/views/paragraph/paragraph.reducer.js deleted file mode 100644 index 3b33128..0000000 --- a/animism-align/frontend/app/views/paragraph/paragraph.reducer.js +++ /dev/null @@ -1,28 +0,0 @@ -import * as types from 'app/types' -// import { session, getDefault, getDefaultInt } from 'app/session' - -import { crudState, crudReducer } from 'app/api/crud.reducer' - -const initialState = crudState('paragraph', { - paragraphs: [], - footnotes: [], - options: { - } -}) - -const reducer = crudReducer('paragraph') - -export default function paragraphReducer(state = initialState, action) { - // console.log(action.type, action) - state = reducer(state, action) - switch (action.type) { - case types.paragraph.update_transcript: - return { - ...state, - paragraphs: action.paragraphs, - footnotes: action.footnotes, - } - default: - return state - } -} |
