diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-24 14:43:48 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-24 14:43:48 +0700 |
| commit | 812e4ac0afc56ee3121a5673af35bf8be2f4432c (patch) | |
| tree | 08ecdfbc1b49e24082091610040f94ada6da6690 /src/modules/profile-card/components/Dropdown.tsx | |
| parent | 66df36564dd3c027e89db423c2e30e6f8f027216 (diff) | |
Update
Diffstat (limited to 'src/modules/profile-card/components/Dropdown.tsx')
| -rw-r--r-- | src/modules/profile-card/components/Dropdown.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
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 ( |
