chore: cleanup

This commit is contained in:
Carlos Valente
2024-01-05 21:57:47 +01:00
parent cb23b83b9d
commit 3753d51d85
3 changed files with 1 additions and 43 deletions
@@ -40,7 +40,6 @@ const EventEditorTimes = (props: EventEditorTimesProps) => {
props;
const { updateEvent } = useEventAction();
const handleSubmit = (field: TimeActions, value: number | string | boolean) => {
const newEventData: Partial<OntimeEvent> = { id: eventId };
switch (field) {
@@ -156,10 +155,8 @@ const EventEditorTimes = (props: EventEditorTimesProps) => {
id='timeWarning'
name='timeWarning'
submitHandler={handleSubmit}
validationHandler={timerValidationHandler}
time={timeWarning}
placeholder='Duration'
warning={warning.duration}
/>
<label className={style.inputLabel} htmlFor='timeDanger'>
Danger Time
@@ -168,10 +165,8 @@ const EventEditorTimes = (props: EventEditorTimesProps) => {
id='timeDanger'
name='timeDanger'
submitHandler={handleSubmit}
validationHandler={timerValidationHandler}
time={timeDanger}
placeholder='Duration'
warning={warning.duration}
/>
</div>
</div>