mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update navbar component
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user