Closed dogezen closed 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
Don;t forget to move the id= from the button
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 insrc/components/Header
folder.On log out, we want to navigate to the
/
homepage (so that we see the login screen). Note thatreplace: true
will erase past navigation history clearing the ability to go back!