From 9d36ef65461c83993bf527c5a4602a249929d2cf Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 6 May 2025 21:16:55 +0200 Subject: [PATCH] missions mission pages --- app/mission-tab/layout.tsx | 18 +++++++++++++++++- components/main-nav.tsx | 6 ++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/app/mission-tab/layout.tsx b/app/mission-tab/layout.tsx index 0519ecba..baa7a8d6 100644 --- a/app/mission-tab/layout.tsx +++ b/app/mission-tab/layout.tsx @@ -1 +1,17 @@ - \ No newline at end of file +"use client"; + +import React from "react"; + +export default function MissionTabLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( +
+
+ {children} +
+
+ ); +} \ No newline at end of file diff --git a/components/main-nav.tsx b/components/main-nav.tsx index 9049ed48..e901c8a4 100644 --- a/components/main-nav.tsx +++ b/components/main-nav.tsx @@ -203,6 +203,12 @@ export function MainNav() { href: '/showcase', requiredRoles: ["expression"], }, + { + title: "Centrale", + icon: Target, + href: '/missions', + requiredRoles: ["entrepreneurship", "admin"], + }, { title: "Equipes", icon: UserCog,