- Initial commit

This commit is contained in:
2019-07-09 03:48:02 -04:00
commit 8ecf036cc4
105 changed files with 11254 additions and 0 deletions

17
app/reducers/events.js Normal file
View File

@@ -0,0 +1,17 @@
import { EVENTS_LOADED, GET_EVENTS } from '../constants/actionTypes.js';
export const events = (state = {}, action) => {
switch (action.type) {
case GET_EVENTS:
return Object.assign({}, state, {
isFetching: true,
});
case EVENTS_LOADED:
return Object.assign({}, state, {
events: action.payload,
isFetching: false,
});
default:
return state;
}
};