client/src/actions/eventActions.js
import { POPULATE_EVENTS, SET_EVENT_DETAIL } from '../constants/actionTypes';
export const populateEvents = eventList => ({
type: POPULATE_EVENTS,
payload: eventList,
});
export const setEventDetail = event => ({
type: SET_EVENT_DETAIL,
payload: event,
});