Rev 6496 | Rev 6499 | 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:console.log(payload)console.log(state)return { ...state, ...payload }default:return state}}export default AuthReducer