import * as types from "../actionTypes/actionTypes" import initialState from "../state/addEventInitialValue"; export default (state = initialState, action) => { switch (action.type) { //GET REGISTRED USERS case types.GET_REGISTRED_USERS: { return state; } case types.GET_EVENTS_REQUEST_SUCCESS: { const { data } = action.payload; const eventusers = data.eventusers console.log('state', state) console.log('result reduser users', eventusers) return { ...state, eventusers }; } case types.GET_EVENTS_REQUEST_FAIL: { return state; } default: return state; } }