Skip to content

Add logout button in Navbar.jsx#138

Open
mdbailin wants to merge 1 commit into
safak:mern-ecommerce-appfrom
mdbailin:patch-1
Open

Add logout button in Navbar.jsx#138
mdbailin wants to merge 1 commit into
safak:mern-ecommerce-appfrom
mdbailin:patch-1

Conversation

@mdbailin

@mdbailin mdbailin commented Feb 1, 2023

Copy link
Copy Markdown

I have added a logout button in Navbar.jsx that conditionally renders if a user is logged in. The button users the LogOut reducer to mutate the user state and goes back to the home page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant