mirror of
https://github.com/urosran/cally.git
synced 2026-10-23 09:47:53 +00:00
Notifications
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user