Skip to content

Commit b11abca

Browse files
committed
purposes given
1 parent c459d1d commit b11abca

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/frontend/src/pages/CalendarPage/Components/EditEventModal.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { convertEventToFormValues } from '../../../utils/calendar.utils';
55
import { useEditEvent, useEditScheduleSlot, useUploadManyDocuments } from '../../../hooks/calendar.hooks';
66
import { useToast } from '../../../hooks/toasts.hooks';
77
import { AlertColor } from '@mui/material';
8+
import LoadingIndicator from '../../../components/LoadingIndicator';
89

910
export interface EditEventModalProps {
1011
open: boolean;
@@ -19,13 +20,14 @@ const EditEventModal: React.FC<EditEventModalProps> = ({ open, onClose, event, e
1920
const { mutateAsync: uploadDocuments } = useUploadManyDocuments();
2021
const { mutateAsync: editScheduleSlot } = useEditScheduleSlot(event.eventId, event.scheduleSlotId);
2122

22-
if (isLoading) {
23-
//?
24-
}
2523
if (isError) {
2624
editEventModalError(error, toast);
2725
}
2826

27+
if (isLoading) {
28+
return <LoadingIndicator />;
29+
}
30+
2931
const initialValues = convertEventToFormValues(event);
3032

3133
const handleSubmit = async (payload: EventPayload) => {

0 commit comments

Comments
 (0)