summaryrefslogtreecommitdiff
path: root/src/modules/profile-card/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/profile-card/components')
-rw-r--r--src/modules/profile-card/components/Dropdown.tsx5
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 (