blob: cd82b0236304706b4169e05db271578b12f1483f (
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('user', {
options: {},
})
const reducer = crudReducer('user')
export default function userReducer(state = initialState, action) {
// console.log(action.type, action)
state = reducer(state, action)
switch (action.type) {
default:
return state
}
}
|