From d5a4118025186361f779411f61a9e42f8d8699ca Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Sun, 8 Feb 2026 20:12:45 +0100 Subject: [PATCH] =?UTF-8?q?Admin-Panel=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dispatch/app/(app)/_components/Navbar.tsx | 5 +++++ apps/dispatch/app/(app)/dispatch/layout.tsx | 1 + 2 files changed, 6 insertions(+) diff --git a/apps/dispatch/app/(app)/_components/Navbar.tsx b/apps/dispatch/app/(app)/_components/Navbar.tsx index 0bcb448c..b7693ae6 100644 --- a/apps/dispatch/app/(app)/_components/Navbar.tsx +++ b/apps/dispatch/app/(app)/_components/Navbar.tsx @@ -3,8 +3,12 @@ import Link from "next/link"; import { prisma } from "@repo/db"; import { ChangelogWrapper } from "_components/navbar/ChangelogWrapper"; import ModeSwitchDropdown from "_components/navbar/ModeSwitchDropdown"; +import { useSession } from "next-auth/react"; +import { getServerSession } from "api/auth/[...nextauth]/auth"; +import AdminPanel from "_components/navbar/AdminPanel"; export default async function Navbar({ children }: { children: React.ReactNode }) { + const session = await getServerSession(); const latestChangelog = await prisma.changelog.findFirst({ orderBy: { createdAt: "desc", @@ -17,6 +21,7 @@ export default async function Navbar({ children }: { children: React.ReactNode }
VAR Operations Center