diff --git a/components/missions/missions-admin-panel.tsx b/components/missions/missions-admin-panel.tsx index 800a2417..4c002c17 100644 --- a/components/missions/missions-admin-panel.tsx +++ b/components/missions/missions-admin-panel.tsx @@ -296,11 +296,26 @@ export function MissionsAdminPanel() { } }; + // Function to navigate to the previous tab + const goToPreviousTab = () => { + const tabOrder = ["general", "details", "attachments", "skills", "membres"]; + const currentIndex = tabOrder.indexOf(activeTab); + if (currentIndex > 0) { + const prevTab = tabOrder[currentIndex - 1]; + setActiveTab(prevTab); + } + }; + // Check if we're on the last tab const isLastTab = () => { return activeTab === "membres"; }; + // Check if we're on the first tab + const isFirstTab = () => { + return activeTab === "general"; + }; + return (