diff --git a/apps/bridge-frontend/app/_components/Sidebar.tsx b/apps/bridge-frontend/app/_components/Sidebar.tsx index d83400a..31aaaaa 100644 --- a/apps/bridge-frontend/app/_components/Sidebar.tsx +++ b/apps/bridge-frontend/app/_components/Sidebar.tsx @@ -20,11 +20,12 @@ import { WhatsApp as WhatsAppIcon, Facebook as FacebookIcon, AirlineStops as AirlineStopsIcon, + Logout as LogoutIcon, } from "@mui/icons-material"; import { usePathname } from "next/navigation"; import Link from "next/link"; import Image from "next/image"; -import { typography, fonts } from "@link-stack/ui"; +import { typography, fonts, Button } from "@link-stack/ui"; import LinkLogo from "@/app/_images/link-logo-small.png"; import { useSession, signOut } from "next-auth/react"; @@ -161,9 +162,9 @@ export const Sidebar: FC = ({ open, setOpen }) => { const { data: session } = useSession(); const user = session?.user; - // const logout = () => { - // signOut({ callbackUrl: "/login" }); - // }; + const logout = () => { + signOut({ callbackUrl: "/login" }); + }; return ( = ({ open, setOpen }) => { )} - {open && ( - - - {user?.email} - - - )} + + + + {user?.email} + + + +