diff --git a/frontend/src/components/shared/Sidebar.tsx b/frontend/src/components/shared/Sidebar.tsx
index d385734..d82d233 100644
--- a/frontend/src/components/shared/Sidebar.tsx
+++ b/frontend/src/components/shared/Sidebar.tsx
@@ -56,16 +56,10 @@ interface NavigationItem {
}
const adminSubItems: SubItem[] = [
- { text: 'Services', path: '/admin?tab=0' },
- { text: 'System', path: '/admin?tab=1' },
- { text: 'Benutzer', path: '/admin?tab=2' },
- { text: 'Broadcast', path: '/admin?tab=3' },
- { text: 'Banner', path: '/admin?tab=4' },
- { text: 'Wartung', path: '/admin?tab=5' },
- { text: 'Berechtigungen', path: '/admin?tab=6' },
- { text: 'Bestellungen', path: '/admin?tab=7' },
- { text: 'Datenverwaltung', path: '/admin?tab=8' },
- { text: 'Debug', path: '/admin?tab=9' },
+ { text: 'Information', path: '/admin?tab=0' },
+ { text: 'System Mitteilungen', path: '/admin?tab=1' },
+ { text: 'Tool Zugriff', path: '/admin?tab=2' },
+ { text: 'Daten', path: '/admin?tab=3' },
];
const baseNavigationItems: NavigationItem[] = [
diff --git a/frontend/src/pages/AdminDashboard.tsx b/frontend/src/pages/AdminDashboard.tsx
index 4aa5d35..42aae5d 100644
--- a/frontend/src/pages/AdminDashboard.tsx
+++ b/frontend/src/pages/AdminDashboard.tsx
@@ -9,9 +9,8 @@ import NotificationBroadcastTab from '../components/admin/NotificationBroadcastT
import BannerManagementTab from '../components/admin/BannerManagementTab';
import ServiceModeTab from '../components/admin/ServiceModeTab';
import PermissionMatrixTab from '../components/admin/PermissionMatrixTab';
-import BestellungenTab from '../components/admin/BestellungenTab';
import DataManagementTab from '../components/admin/DataManagementTab';
-import DebugTab from '../components/admin/DebugTab';
+import FdiskSyncTab from '../components/admin/FdiskSyncTab';
import { usePermissionContext } from '../contexts/PermissionContext';
interface TabPanelProps {
@@ -25,7 +24,19 @@ function TabPanel({ children, value, index }: TabPanelProps) {
return {children};
}
-const ADMIN_TAB_COUNT = 10;
+function SubTabs({ labels, children }: { labels: string[]; children: React.ReactNode[] }) {
+ const [subTab, setSubTab] = useState(0);
+ return (
+
+ setSubTab(v)} sx={{ mb: 2, borderBottom: 1, borderColor: 'divider' }}>
+ {labels.map((l) => )}
+
+ {children.map((child, i) => subTab === i ? {child} : null)}
+
+ );
+}
+
+const ADMIN_TAB_COUNT = 4;
function AdminDashboard() {
const navigate = useNavigate();
@@ -51,48 +62,32 @@ function AdminDashboard() {
{ setTab(v); navigate(`/admin?tab=${v}`, { replace: true }); }} variant="scrollable" scrollButtons="auto">
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+ {[, , ]}
+
-
+
+ {[, ]}
+
-
+
+ {[, ]}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ {[, ]}
+
);