summaryrefslogtreecommitdiff
path: root/src/modules/profile-card
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/profile-card')
-rw-r--r--src/modules/profile-card/components/Dropdown.tsx5
-rw-r--r--src/modules/profile-card/index.tsx2
-rw-r--r--src/modules/profile-card/profile-card.module.css4
3 files changed, 6 insertions, 5 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 (
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 && (
- <Card shadow='sm'>
+ <Card shadow='none' radius='none' className={styles.card}>
<CardBody className={styles.cardBody}>
<Avatar icon={<AvatarIcon />} size='sm' isBordered color='primary' classNames={{ icon: 'text-white' }} />
<div>
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;
}