From e7b19737646574188ad646fb6309963d99e83604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sat, 30 Jan 2021 20:46:36 +0900 Subject: [PATCH] feat: using preset --- components/Navbar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 60cb8a9..7fdf273 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -74,7 +74,7 @@ const Navbar = (): JSX.Element => { if(!userCache) { localStorage.redirectTo = window.location.href setNavbarOpen(false) - redirectTo(router, 'logout') + redirectTo(router, 'login') } }} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer'> { userCache ? @@ -99,8 +99,8 @@ const Navbar = (): JSX.Element => { {/*

  • */}
  • { - localStorage.removeItem('token') - redirectTo(router, '/api/auth/discord/logout') + localStorage.removeItem('userCache') + redirectTo(router, 'logout') }} className='px-4 py-2 block text-red-500 hover:bg-gray-100 dark:hover:bg-discord-dark-hover rounded-b cursor-pointer'> ๋กœ๊ทธ์•„์›ƒ