diff --git a/apps/pwa/src/components/CalendarShell.tsx b/apps/pwa/src/components/CalendarShell.tsx index e05c6a3..7e4c1ad 100644 --- a/apps/pwa/src/components/CalendarShell.tsx +++ b/apps/pwa/src/components/CalendarShell.tsx @@ -39,12 +39,14 @@ import { type CalendarType, } from '@schedule-x/calendar' import { createEventsServicePlugin } from '@schedule-x/events-service' +import { Plus } from 'lucide-react' import { fetchMe, fetchEvents } from '../api/client.js' import { hydrateEvents } from '../lib/hydrateEvents.js' import { buildCalendarConfig, SX_FIRST_DAY_OF_WEEK } from '../lib/calendarConfig.js' import { useCalendarStore } from '../store/calendarStore.js' import { EventDetailPopover } from './EventDetailPopover.js' +import { EventForm } from './EventForm.js' import { AppNav } from './AppNav.js' import { ColorLegend } from './ColorLegend.js' import { SkeletonCalendar } from './SkeletonCalendar.js' @@ -75,6 +77,8 @@ export function CalendarShell() { const setCalendarRange = useCalendarStore((s) => s.setCalendarRange) const setOpenEventId = useCalendarStore((s) => s.setOpenEventId) const selectedView = useCalendarStore((s) => s.selectedView) + const setEventForm = useCalendarStore((s) => s.setEventForm) + const eventFormOpen = useCalendarStore((s) => s.eventFormOpen) const { start, end } = calendarRange const queryClient = useQueryClient() @@ -297,7 +301,7 @@ export function CalendarShell() { // ── Full layout ──────────────────────────────────────────────────────────── if (phone) { - // Phone: stacked layout — AppNav top bar + content below + // Phone: stacked layout — AppNav top bar + content below + FAB return (