-
Rename
firebaseInit.jstoapi/index.jsor 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 ofrouterReducerandformReducertoroutingandformrespectively, 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_LOGINis defined in bothactions/authAction.jsandconstants/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.jsshouldn't be its own reducer. Just have a single reducer that is responsible for theactivitiesarray. -
createActivityActions.jsshould 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.jsis empty.