From fa08cebaa54fffbd53912820aec6eb993ccf715c Mon Sep 17 00:00:00 2001 From: alma Date: Mon, 5 May 2025 11:46:46 +0200 Subject: [PATCH] remove qg place --- app/qg/page.tsx | 23 ----------------------- components/main-nav.tsx | 13 ++++++------- 2 files changed, 6 insertions(+), 30 deletions(-) delete mode 100644 app/qg/page.tsx diff --git a/app/qg/page.tsx b/app/qg/page.tsx deleted file mode 100644 index 92c628c6..00000000 --- a/app/qg/page.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/app/api/auth/[...nextauth]/route"; -import { redirect } from "next/navigation"; -import { ResponsiveIframe } from "@/app/components/responsive-iframe"; - -export default async function Page() { - const session = await getServerSession(authOptions); - - if (!session) { - redirect("/signin"); - } - - return ( -
-
- -
-
- ); -} \ No newline at end of file diff --git a/components/main-nav.tsx b/components/main-nav.tsx index 09bdc03c..2ec94931 100644 --- a/components/main-nav.tsx +++ b/components/main-nav.tsx @@ -180,13 +180,12 @@ export function MainNav() { }; // Base menu items (available for everyone) - const baseMenuItems = [ - { - title: "QG", - icon: Target, - href: '/qg', - }, - ]; + const baseMenuItems: { + title: string; + icon: any; + href: string; + requiredRoles?: string[]; + }[] = []; // Role-specific menu items const roleSpecificItems = [