diff options
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 ( |
