RyanWarner / supernova

Universal React boilerplate. React, Firebase, Node, Express, Webpack, Styled Components.
7 stars 3 forks source link

Admin panel v1, add ScrollToTop component #4

Closed RyanWarner closed 5 years ago

RyanWarner commented 5 years ago

One big change to note here is the routing. With the addition of the admin panel, I added another layer of nesting to our routes.

There's one top level container, Root, and then the admin and main app both have their own containers, AppRoot and AdminRoot.

I also refactored the logic for determining which route is active. This has some implications for fetching async data on the server that I could better explain on a call if the time ever comes.