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 (
<Wrapper color={role} withSidebar={withSidebar}>
<Link href='/client'>
<Link href='/'>
<Logo />
</Link>
<div className='menu'></div>
@@ -37,6 +37,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => {
label: 'Logout',
action: () => {
tokenVar(undefined);
localStorage.removeItem('token');
history.push('/login');
},
avoid: true,