From dc72a98a3fa203193293964dec955167445326aa Mon Sep 17 00:00:00 2001 From: Manuel Ernesto Garcia Date: Fri, 16 Dec 2022 14:59:01 -0500 Subject: [PATCH] Improvecalendar modal form --- src/ui/components/EditEvent.tsx | 121 ++++++++++++++++++-------------- src/ui/overrides.css | 16 +++++ 2 files changed, 85 insertions(+), 52 deletions(-) diff --git a/src/ui/components/EditEvent.tsx b/src/ui/components/EditEvent.tsx index cdf6770..26077b1 100644 --- a/src/ui/components/EditEvent.tsx +++ b/src/ui/components/EditEvent.tsx @@ -187,12 +187,6 @@ export const EditEvent = ({ return ( <> -
-

- {open && } -

-
-

x)} /> -

-

+ setAllDay(e.target.checked)} - type="checkbox" - /> -

-

- - setIsRecurring(e.target.checked)} - type="checkbox" - /> + + setAllDay(e.target.checked)} + type="checkbox" + /> + + + + + setIsRecurring(e.target.checked)} + type="checkbox" + /> + +

{isRecurring && ( @@ -325,45 +325,61 @@ export const EditEvent = ({ )}

- - { - setIsTask(e.target.checked); - }} - type="checkbox" - /> -

- - {isTask && ( - <> - + - setComplete( - e.target.checked - ? DateTime.now().toISO() - : false - ) - } + id="task" + checked={isTask} + onChange={(e) => { + setIsTask(e.target.checked); + }} type="checkbox" /> - - )} + + + + {isTask && ( + <> + + + setComplete( + e.target.checked + ? DateTime.now().toISO() + : false + ) + } + type="checkbox" + /> + + + + )} +

+ {open && ( + + )} {deleteEvent && (