resolve issues with new features

This commit is contained in:
Matthias Hochmeister
2026-03-12 18:09:59 +01:00
parent dc33d388a9
commit d1fed74f3b
7 changed files with 69 additions and 55 deletions

View File

@@ -13,7 +13,6 @@ import {
DialogContentText,
DialogTitle,
Divider,
Fab,
FormControl,
FormControlLabel,
FormGroup,
@@ -70,7 +69,7 @@ import {
} from '@mui/icons-material';
import { useNavigate, useSearchParams } from 'react-router-dom';
import DashboardLayout from '../components/dashboard/DashboardLayout';
import { useLayout } from '../contexts/LayoutContext';
import ChatAwareFab from '../components/shared/ChatAwareFab';
import { toGermanDate, toGermanDateTime, fromGermanDate, fromGermanDateTime, isValidGermanDate, isValidGermanDateTime } from '../utils/dateInput';
import { useAuth } from '../contexts/AuthContext';
import { useNotification } from '../contexts/NotificationContext';
@@ -1682,7 +1681,6 @@ export default function Kalender() {
const [searchParams] = useSearchParams();
const { user } = useAuth();
const notification = useNotification();
const { chatPanelOpen } = useLayout();
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));
@@ -2554,16 +2552,14 @@ export default function Kalender() {
{/* FAB: Create Veranstaltung */}
{canWriteEvents && (
<Fab
color="primary"
sx={{ position: 'fixed', bottom: 32, right: chatPanelOpen ? 376 : 80, transition: 'right 225ms cubic-bezier(0.4, 0, 0.6, 1)' }}
<ChatAwareFab
onClick={() => {
setVeranstEditing(null);
setVeranstFormOpen(true);
}}
>
<Add />
</Fab>
</ChatAwareFab>
)}
{/* Day Popover */}
@@ -2927,13 +2923,9 @@ export default function Kalender() {
{/* FAB */}
{canCreateBookings && (
<Fab
color="primary"
sx={{ position: 'fixed', bottom: 32, right: chatPanelOpen ? 376 : 80, transition: 'right 225ms cubic-bezier(0.4, 0, 0.6, 1)' }}
onClick={openBookingCreate}
>
<ChatAwareFab onClick={openBookingCreate}>
<Add />
</Fab>
</ChatAwareFab>
)}
{/* Booking detail popover */}