From 812e4ac0afc56ee3121a5673af35bf8be2f4432c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 24 Nov 2023 14:43:48 +0700
Subject: Update

---
 src/modules/profile-card/components/Dropdown.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/modules/profile-card/components/Dropdown.tsx')

diff --git a/src/modules/profile-card/components/Dropdown.tsx b/src/modules/profile-card/components/Dropdown.tsx
index f6f58c9..6e86c59 100644
--- a/src/modules/profile-card/components/Dropdown.tsx
+++ b/src/modules/profile-card/components/Dropdown.tsx
@@ -2,14 +2,11 @@
 import { DropdownItem, DropdownMenu, DropdownTrigger, Dropdown as UIDropdown } from "@nextui-org/react"
 import { MoreVerticalIcon } from "lucide-react"
 import { deleteCookie } from "cookies-next"
-import { useRouter } from "next/navigation";
 
 const Dropdown = () => {
-  const router = useRouter()
-
   const logout = () => {
     deleteCookie('credential')
-    router.push('/login')
+    window.location.href = '/login'
   }
 
   return (
-- 
cgit v1.2.3

