calendar and vehicle booking rework

This commit is contained in:
Matthias Hochmeister
2026-03-25 16:18:40 +01:00
parent 7dab359448
commit 21bbe57d6f
5 changed files with 86 additions and 3 deletions

View File

@@ -64,6 +64,7 @@ import {
} from '@mui/icons-material';
import { useNavigate } from 'react-router-dom';
import DashboardLayout from '../components/dashboard/DashboardLayout';
import ServiceModePage from '../components/shared/ServiceModePage';
import ChatAwareFab from '../components/shared/ChatAwareFab';
import { toGermanDateTime, fromGermanDate, fromGermanDateTime } from '../utils/dateInput';
@@ -1625,7 +1626,7 @@ function VeranstaltungFormDialog({
export default function Kalender() {
const navigate = useNavigate();
const { hasPermission } = usePermissionContext();
const { hasPermission, isFeatureEnabled } = usePermissionContext();
const notification = useNotification();
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));
@@ -1873,6 +1874,10 @@ export default function Kalender() {
// ── Render ───────────────────────────────────────────────────────────────────
if (!isFeatureEnabled('kalender')) {
return <ServiceModePage message="Der Kalender befindet sich aktuell im Wartungsmodus." />;
}
return (
<DashboardLayout>
<Box sx={{ maxWidth: 1100, mx: 'auto' }}>