boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Move the logout button from the PostsPage component to the Header #102

Closed dogezen closed 1 year ago

dogezen commented 1 year ago

Currently, the logout button is in the PostsPage component defined in /src/components/posts/PostsPage.js

We want to move the "sign out" button (and all relevant functionality that clears the logged in state from local storage) into the <Header> component defined in src/components/Header folder.

On log out, we want to navigate to the / homepage (so that we see the login screen). Note that replace: true will erase past navigation history clearing the ability to go back!

dogezen commented 1 year ago

Warning: if working on this issue, coordinate with anyone else working on the following two issues, to avoid writing code that conflicts

https://github.com/boolean-uk/team-dev-frontend-client/issues/100

https://github.com/boolean-uk/team-dev-frontend-client/issues/101

dogezen commented 1 year ago

Don;t forget to move the id= from the button