summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/venue/venue.reducer.js
blob: e0b3a2bfdd5ea141b2d22f7da64ba717969849f3 (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('venue', {
  options: {},
})

const reducer = crudReducer('venue')

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