Update navbar component

This commit is contained in:
Hazem Krimi
2021-04-29 19:09:35 +01:00
parent 1a9b6473e2
commit 76ef244d55
+2 -1
View File
@@ -16,7 +16,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => {
return ( return (
<Wrapper color={role} withSidebar={withSidebar}> <Wrapper color={role} withSidebar={withSidebar}>
<Link href='/client'> <Link href='/'>
<Logo /> <Logo />
</Link> </Link>
<div className='menu'></div> <div className='menu'></div>
@@ -37,6 +37,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => {
label: 'Logout', label: 'Logout',
action: () => { action: () => {
tokenVar(undefined); tokenVar(undefined);
localStorage.removeItem('token');
history.push('/login'); history.push('/login');
}, },
avoid: true, avoid: true,