Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie committed Nov 9, 2024
1 parent eb5aa8a commit 7b91438
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions apps/nextjs/src/components/navbar/navbar-right-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ import Link from "next/link";
import { auth } from "@clerk/nextjs/server";
import { Icon } from "@iconify/react/dist/iconify.js";

import {
Badge,
Button,
Popover,
PopoverContent,
PopoverTrigger,
} from "@battle-stadium/ui";

import { getAccountMe } from "~/app/server-actions/accounts/actions";
import UserMenu from "./user-menu/user-menu";

Expand All @@ -19,7 +11,7 @@ export default async function RightMenu() {
const me = (await getAccountMe())?.data;

return (
<div>
<div className="flex flex-row items-center justify-center gap-2">
<Button>
<Icon
className="text-default-500"
Expand All @@ -36,26 +28,9 @@ export default async function RightMenu() {
width={24}
/>
</Button>

<Popover>
<PopoverTrigger>
<Badge color="danger" content="5">
<Icon
className="text-default-500"
icon="solar:bell-linear"
width={22}
/>
</Badge>
</PopoverTrigger>
<PopoverContent className="max-w-[90vw] p-0 sm:max-w-[380px]">
<p className="text-default-500 py-4 text-center">
See all notifications
</p>
</PopoverContent>
</Popover>

<UserMenu isSignedIn={!!clerkAuth.sessionId} me={me} />
</Link>

<UserMenu isSignedIn={!!clerkAuth.sessionId} me={me} />
</div>
);
}

0 comments on commit 7b91438

Please sign in to comment.