Login/logout updates
This commit is contained in:
parent
a35d18b5a9
commit
58e713c98b
4 changed files with 20 additions and 21 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue