Notifications

This commit is contained in:
Milan Paunovic
2024-10-11 23:53:08 +02:00
parent 9c6cc16f16
commit 04a6103470
17 changed files with 392 additions and 84 deletions
@@ -98,7 +98,7 @@ export const ManuallyAddEventModal = ({
return combined;
};
const handleSave = () => {
const handleSave = async () => {
let finalStartDate: Date;
let finalEndDate: Date;
@@ -113,15 +113,14 @@ export const ManuallyAddEventModal = ({
finalEndDate = combineDateAndTime(endDate, endTime);
}
const eventData: CalendarEvent = {
const eventData: Partial<EventData> = {
title: title,
start: finalStartDate,
end: finalEndDate,
startDate: finalStartDate,
endDate: finalEndDate,
allDay: isAllDay,
private: isPrivate,
};
addEvent(eventData);
await createEvent(eventData);
close();
};