Rev 6498 | Rev 6500 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import { actionsTypes } from './auth.types'
const initialState = {
permissions: '',
}
const AuthReducer = (state = initialState, { type, payload }) => {
console.log('Auth reducer')
const actionCases = {
[actionsTypes.SET_PERMISSIONS]: { ...state, permissions: payload },
}
return actionCases[type]
}
export default AuthReducer