refactor: remove 'mark as important' field and clean up console.log statements
- Remove 'important' field from EventFormFields component and all event modals - Remove all console.log statements from event create/update flow - Fix import issues and type compatibility in EventModal
This commit is contained in:
committed by
Benoit TELLIER
parent
202feb3d23
commit
80c1babb7f
@@ -42,9 +42,6 @@ export async function putEvent(event: CalendarEvent, calOwnerEmail?: string) {
|
||||
"content-type": "text/calendar; charset=utf-8",
|
||||
},
|
||||
});
|
||||
if (response.status === 201) {
|
||||
console.log("PUT (201) :", response.url);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@ export default function EventDisplayModal({
|
||||
</Button>
|
||||
<Button
|
||||
color="primary"
|
||||
onClick={() => console.log("proposenewtime")}
|
||||
onClick={() => {}}
|
||||
>
|
||||
Propose new time
|
||||
</Button>
|
||||
|
||||
@@ -144,7 +144,6 @@ function EventUpdateModal({
|
||||
const [attendees, setAttendees] = useState<userAttendee[]>([]);
|
||||
const [hasVideoConference, setHasVideoConference] = useState(false);
|
||||
const [meetingLink, setMeetingLink] = useState<string | null>(null);
|
||||
const [important, setImportant] = useState(false);
|
||||
|
||||
const resetAllStateToDefault = useCallback(() => {
|
||||
setShowMore(false);
|
||||
@@ -162,7 +161,6 @@ function EventUpdateModal({
|
||||
setAlarm("");
|
||||
setEventClass("PUBLIC");
|
||||
setBusy("OPAQUE");
|
||||
setImportant(false);
|
||||
setTimezone(
|
||||
resolveTimezone(Intl.DateTimeFormat().resolvedOptions().timeZone)
|
||||
);
|
||||
@@ -422,8 +420,6 @@ function EventUpdateModal({
|
||||
setTimezone={setTimezone}
|
||||
calendarid={calendarid}
|
||||
setCalendarid={setCalendarid}
|
||||
important={important}
|
||||
setImportant={setImportant}
|
||||
hasVideoConference={hasVideoConference}
|
||||
setHasVideoConference={setHasVideoConference}
|
||||
meetingLink={meetingLink}
|
||||
|
||||
Reference in New Issue
Block a user