diff --git a/src/app/dashboard/loa/Scheduler.tsx b/src/app/dashboard/loa/Scheduler.tsx index adb978a..13af81c 100644 --- a/src/app/dashboard/loa/Scheduler.tsx +++ b/src/app/dashboard/loa/Scheduler.tsx @@ -1,8 +1,11 @@ 'use client'; import React, { useState } from 'react'; +import { LuAlertCircle } from 'react-icons/lu'; import { TuiCalendar } from '@/components/Calendar'; import { ClientPortal } from '@/components/ClientPortal'; +import { Alert, AlertTitle } from '@/components/Alert'; +import { Button } from '@/components/Button'; import { RequestLoaModal } from './RequestLoaModal'; export const Scheduler: React.FC = () => { @@ -12,6 +15,7 @@ export const Scheduler: React.FC = () => { return ( <> { @@ -19,6 +23,17 @@ export const Scheduler: React.FC = () => { setShowModal(true); }} /> + + Larger screen needed! +

+ Your device is too small to view the LOA scheduler. + We recommend switching to a larger device, or trying landscape mode. + Alternatively, you can request an LOA without viewing the calendar. +

+ +
= ({ presets }) => { return ( <> = ({ presets }) => { setShowModal(true); }} /> + + Larger screen needed! +

+ Your device is too small to view the event scheduler. + We recommend switching to a larger device, or trying landscape mode. + Alternatively, you can create an event without viewing the calendar. +

+ +
= ({ requests }) => { return ( <> = ({ requests }) => { setShowModal(true); }} /> + + Larger screen needed! +

+ Your device is too small to view the training scheduler. + We recommend switching to a larger device, or trying landscape mode. + Alternatively, you can request training without viewing the calendar. +

+ +
[]; view?: CalendarView; onSelectDateTime?: (range: { start: Date, end: Date }) => void; }; -export const TuiCalendar: React.FC = ({ events, onSelectDateTime, ...props }) => { +export const TuiCalendar: React.FC = ({ className, events, onSelectDateTime, ...props }) => { const [currentDate, setCurrentDate] = useState(new Date()); const dateKey = useMemo(() => `${currentDate.getFullYear()}/${currentDate.getMonth() + 1}`, [currentDate]); @@ -60,7 +61,7 @@ export const TuiCalendar: React.FC = ({ events, onSelectDateTi }, [events, dateKey, calendarRef]); return ( -
+

{format(currentDate, 'MMMM y')}