From 812e4ac0afc56ee3121a5673af35bf8be2f4432c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 24 Nov 2023 14:43:48 +0700 Subject: Update --- src/modules/profile-card/components/Dropdown.tsx | 5 +---- src/modules/profile-card/index.tsx | 2 +- src/modules/profile-card/profile-card.module.css | 4 ++++ 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules/profile-card') 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 ( diff --git a/src/modules/profile-card/index.tsx b/src/modules/profile-card/index.tsx index 881561d..f353f16 100644 --- a/src/modules/profile-card/index.tsx +++ b/src/modules/profile-card/index.tsx @@ -8,7 +8,7 @@ const ProfileCard = () => { const credential = getServerCredential() return credential && ( - + } size='sm' isBordered color='primary' classNames={{ icon: 'text-white' }} />
diff --git a/src/modules/profile-card/profile-card.module.css b/src/modules/profile-card/profile-card.module.css index b0b05ef..b7d00fe 100644 --- a/src/modules/profile-card/profile-card.module.css +++ b/src/modules/profile-card/profile-card.module.css @@ -1,3 +1,7 @@ +.card { + @apply border-b border-neutral-300; +} + .cardBody { @apply flex flex-row items-center gap-x-4; } -- cgit v1.2.3