AnomalyInnovations / serverless-stack-demo-client

Source for the demo app client in the Serverless Stack Guide
https://demo2.serverless-stack.com
MIT License
636 stars 204 forks source link

How to isolate login page? #46

Closed pig800509 closed 5 years ago

pig800509 commented 5 years ago
    <UnauthenticatedRoute path="/login" exact component={Login} props={childProps} />
    <AuthenticatedRoute path="/settings" exact component={Settings} props={childProps} />

How to implement login page without Navbar ? I want to show Navbar when I have logged in.

jayair commented 5 years ago

@pig800509 The App.js knows if the user is logged in. So you can decide to not render the NavBar if the person is not logged in. Just like how we decide what to render inside the NavBar:

https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/src/App.js#L64

pig800509 commented 5 years ago

@jayair Okay, thanks, I will keep follow this repository.