Login/logout updates

This commit is contained in:
Darren Clarke 2025-03-25 10:05:52 +01:00
parent a35d18b5a9
commit 58e713c98b
4 changed files with 20 additions and 21 deletions

View file

@ -207,10 +207,6 @@ export const Sidebar: FC<SidebarProps> = ({
return () => clearInterval(interval);
}, []);
const logout = () => {
signOut({ callbackUrl: "/login" });
};
return (
<Drawer
sx={{ width: open ? openWidth : closedWidth, flexShrink: 0 }}
@ -627,7 +623,6 @@ export const Sidebar: FC<SidebarProps> = ({
Icon={LogoutIcon}
iconSize={20}
open={open}
onClick={logout}
/>
</List>
</Grid>