remove qg place
This commit is contained in:
parent
b4347c5914
commit
fa08cebaa5
@ -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>
|
||||
);
|
||||
}
|
||||
@ -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 = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user