Skip to content

Commit

Permalink
enable sign out button
Browse files Browse the repository at this point in the history
  • Loading branch information
annacai44 committed Jan 15, 2025
1 parent c42adcc commit 2bf53ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Account/Account.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import "./Account.css";
function Account({ userName, userEmail, profilePic }) {
const navigate = useNavigate();

const signOut = () => {
navigate("/");
};

return (
<div>
<AppBar />
Expand Down Expand Up @@ -85,6 +89,7 @@ function Account({ userName, userEmail, profilePic }) {
variant="contained"
color="error"
style={{ marginTop: '20px', width: '100%', marginBottom: '20px' }}
onClick={signOut}
>
Sign Out
</Button>
Expand Down

0 comments on commit 2bf53ac

Please sign in to comment.