diff --git a/src/components/modals/sleep-timer/sleep-timer.tsx b/src/components/modals/sleep-timer/sleep-timer.tsx index 99fe487..b17cf63 100644 --- a/src/components/modals/sleep-timer/sleep-timer.tsx +++ b/src/components/modals/sleep-timer/sleep-timer.tsx @@ -69,6 +69,12 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) { setRunning(false); }; + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + + handleStart(); + }; + return (
@@ -78,62 +84,68 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {

-
- {!running && ( -
- - - setHours(e.target.value === '' ? '' : e.target.value) - } - /> -
- )} - - {!running && ( -
- - - setMinutes(e.target.value === '' ? '' : e.target.value) - } - /> -
- )} - - {running ? : null} - -
- {running && ( - +
+
+ {!running && ( +
+ + + setHours(e.target.value === '' ? '' : e.target.value) + } + /> +
)} {!running && ( - +
+ + + setMinutes(e.target.value === '' ? '' : e.target.value) + } + /> +
)} + + {running ? : null} + +
+ {running && ( + + )} + + {!running && ( + + )} +
-
+ ); }