Skip to content

Commit

Permalink
fix: logout
Browse files Browse the repository at this point in the history
  • Loading branch information
tructn committed Oct 19, 2024
1 parent db572bc commit 6b7e93f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/screens/layouts/public.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Menu, rem } from "@mantine/core";
import { IconLogout } from "@tabler/icons-react";

function PublicLayout() {
const { user, isAuthenticated, isLoading } = useAuth0();
const { user, isAuthenticated, isLoading, logout } = useAuth0();

if (isLoading) {
return <FullScreenLoading />;
Expand Down Expand Up @@ -38,6 +38,7 @@ function PublicLayout() {

<Menu.Dropdown>
<Menu.Item
onClick={() => logout()}
color="red"
leftSection={
<IconLogout style={{ width: rem(14), height: rem(14) }} />
Expand Down

0 comments on commit 6b7e93f

Please sign in to comment.