-
Rename
firebaseInit.js
toapi/index.js
or something similar that is not tied to a technology.- This will let you export each function from its own file (imported into
index.js
) - Import library code (firebase, ramda) before your code (dbInit)
- Remove commented out code
- This will let you export each function from its own file (imported into
-
If we're not using Firebase UI, we should remove the config in
dbInit
. -
Should incorporate consistent naming for actions and reducers.
-
Unneeded semicolons (not consistent) in
authAction.js
, but should check all files. -
It's good to take pride in your code. Should apply consistent formatting/indentation to all files, and remove all instances of
console.log()
. -
In
combineReducers.js
, if (during import) you change the name ofrouterReducer
andformReducer
torouting
andform
respectively, you can get rid of a lot of code:
export default combineReducers({ activities, auth, form, routing })
thanks to ES6's streamlined object literal syntax. Obviously optional ;)
-
AUTH_LOGIN
is defined in bothactions/authAction.js
andconstants/authConstants.js
- Since you only have 4 states that are constants, can these not be moved into
actions/authAction.js
?
- Since you only have 4 states that are constants, can these not be moved into
-
deleteActivityReducer.js
shouldn't be its own reducer. Just have a single reducer that is responsible for theactivities
array. -
createActivityActions.js
should include an action/reducer that adds the new activity to the local state while we wait for the response to come back from Firebase. -
reducers/eventlist.js
is empty.