summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/annotation/annotation.reducer.js
blob: 50232a9fd5dc235240db04f8d62ef32677517177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as types from 'app/types'

import { crudState, crudReducer } from 'app/api/crud.reducer'

const initialState = crudState('annotation', {
  options: {
    sort: 'start_ts asc',
  }
})

const reducer = crudReducer('annotation')

export default function annotationReducer(state = initialState, action) {
  // console.log(action.type, action)
  state = reducer(state, action)
  switch (action.type) {
    default:
      return state
  }
}