From a83bf2fd5cf9d658eecf752733ef332ba8816a31 Mon Sep 17 00:00:00 2001 From: Camille Moussu Date: Wed, 3 Sep 2025 10:46:22 +0200 Subject: [PATCH] [#7] removed timezones from popup and added toggle when select free busy --- src/features/Events/EventDisplay.tsx | 7 +++---- src/features/Events/EventModal.tsx | 24 +++--------------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/src/features/Events/EventDisplay.tsx b/src/features/Events/EventDisplay.tsx index f8f4678..a586f47 100644 --- a/src/features/Events/EventDisplay.tsx +++ b/src/features/Events/EventDisplay.tsx @@ -92,6 +92,7 @@ export default function EventDisplayModal({ event.repetition ?? ({} as RepetitionObject) ); const [alarm, setAlarm] = useState(""); + const [busy, setBusy] = useState(""); const [eventClass, setEventClass] = useState(event?.class ?? "PUBLIC"); const [timezone, setTimezone] = useState(event?.timezone ?? "UTC"); const [newCalId, setNewCalId] = useState(event.calId); @@ -503,12 +504,10 @@ export default function EventDisplayModal({ is Busy - setTimezone(e.target.value) - } - > - {Object.keys(timezones).map((key) => ( - - {key} - - ))} - - Alarm - console.log(e.target.value) - } + onChange={(e) => setBusy(e.target.value)} > Free Busy