From 34d3c72f3512664ac8f26a637b0d0be86b5499df Mon Sep 17 00:00:00 2001 From: MAZE Date: Mon, 29 Apr 2024 15:34:00 +0430 Subject: [PATCH] fix: change default values --- src/components/modals/sleep-timer/sleep-timer.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/modals/sleep-timer/sleep-timer.tsx b/src/components/modals/sleep-timer/sleep-timer.tsx index b17cf63..ed2944b 100644 --- a/src/components/modals/sleep-timer/sleep-timer.tsx +++ b/src/components/modals/sleep-timer/sleep-timer.tsx @@ -14,7 +14,7 @@ interface SleepTimerModalProps { export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) { const [hours, setHours] = useState('0'); - const [minutes, setMinutes] = useState('0'); + const [minutes, setMinutes] = useState('10'); const [running, setRunning] = useState(false); const [timeLeft, setTimeLeft] = useState(0); @@ -65,7 +65,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) { if (timerId.current) clearInterval(timerId.current); setTimeLeft(0); setHours('0'); - setMinutes('0'); + setMinutes('10'); setRunning(false); }; @@ -95,6 +95,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) { className={styles.input} id="hours" min="0" + required type="number" value={hours} onChange={e => @@ -113,6 +114,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) { className={styles.input} max="59" min="0" + required type="number" value={minutes} onChange={e =>