From 76ef244d553d04b6ab884a039cf6718a7eaaf9a6 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 29 Apr 2021 19:09:35 +0100 Subject: [PATCH] Update navbar component --- src/components/Navbar/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 529c652..8d33bf6 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -16,7 +16,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => { return ( - +
@@ -37,6 +37,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => { label: 'Logout', action: () => { tokenVar(undefined); + localStorage.removeItem('token'); history.push('/login'); }, avoid: true,