Rev 6495 | Rev 6498 | 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 }) => {
switch (type) {
case actionsTypes.SET_PERMISSIONS:
return {
...state,
payload,
}
default:
return state
}
}
export default AuthReducer