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

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

const initialState = crudState('project', {
  options: {},
})

const reducer = crudReducer('project')

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