remove qg place

This commit is contained in:
alma 2025-05-05 11:46:46 +02:00
parent b4347c5914
commit fa08cebaa5
2 changed files with 6 additions and 30 deletions

View File

@ -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 (
<main className="w-full h-screen bg-black">
<div className="w-full h-full px-4 pt-12 pb-4">
<ResponsiveIframe
src={process.env.NEXT_PUBLIC_IFRAME_MISSIONVIEW_URL || ''}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
/>
</div>
</main>
);
}

View File

@ -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 = [