- implementing immutable.js

This commit is contained in:
2019-07-17 03:21:23 -04:00
parent 8ecf036cc4
commit 434a1ded24
39 changed files with 1123 additions and 187 deletions

View File

@@ -0,0 +1,12 @@
import { SET_ACTIVE_EVENT, UNSET_ACTIVE_EVENT } from '../constants/actionTypes.js';
export const activeEvent = (state = null, action) => {
switch (action.type) {
case SET_ACTIVE_EVENT:
return action.payload;
case UNSET_ACTIVE_EVENT:
return null;
default:
return state;
}
};