Refactors the routing code to make it a bit more manageable
Renames a bunch of components to no longer have the Render prefix
Deletes a little bit of unused code (There is a bunch more that could probably be deleted)
Splits logic that used to be in FirebaseChooseCampaign.js into two separate routes that are redirected to after the firebase search returns (I believe this closes #441)
handleRedirectToExistingCampaign => redirects to new /existing-campaign route
handleRenderNearbyCampaigns => currently not handled (may come back to it in the future)
handleRenderNewCampaign => redirects to new /create-campaign route
Adds a wrapping component for authenticated routes that redirects to an initial login page if the user isn't signed in
Makes the new /create-campaign route require authentication using the above component (Closes #440)
Added NewCampaign container to handle auth state while selecting a campaign
Cleaned up logic and redirect. Moving Redirect functionality into Redux Actions
Things to look for. Does the routing work in different auth states. Does FirebaseInitialSearch or other parts of the store need to be cleared at any point>
What does this PR do?
Render
prefixhandleRedirectToExistingCampaign
=> redirects to new/existing-campaign
routehandleRenderNearbyCampaigns
=> currently not handled (may come back to it in the future)handleRenderNewCampaign
=> redirects to new/create-campaign
route/create-campaign
route require authentication using the above component (Closes #440)