mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
fix: change default values
This commit is contained in:
parent
9d458fb60e
commit
34d3c72f35
1 changed files with 4 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ interface SleepTimerModalProps {
|
||||||
|
|
||||||
export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
|
export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
|
||||||
const [hours, setHours] = useState<string>('0');
|
const [hours, setHours] = useState<string>('0');
|
||||||
const [minutes, setMinutes] = useState<string>('0');
|
const [minutes, setMinutes] = useState<string>('10');
|
||||||
const [running, setRunning] = useState(false);
|
const [running, setRunning] = useState(false);
|
||||||
const [timeLeft, setTimeLeft] = useState(0);
|
const [timeLeft, setTimeLeft] = useState(0);
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
|
||||||
if (timerId.current) clearInterval(timerId.current);
|
if (timerId.current) clearInterval(timerId.current);
|
||||||
setTimeLeft(0);
|
setTimeLeft(0);
|
||||||
setHours('0');
|
setHours('0');
|
||||||
setMinutes('0');
|
setMinutes('10');
|
||||||
setRunning(false);
|
setRunning(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -95,6 +95,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
|
||||||
className={styles.input}
|
className={styles.input}
|
||||||
id="hours"
|
id="hours"
|
||||||
min="0"
|
min="0"
|
||||||
|
required
|
||||||
type="number"
|
type="number"
|
||||||
value={hours}
|
value={hours}
|
||||||
onChange={e =>
|
onChange={e =>
|
||||||
|
|
@ -113,6 +114,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
|
||||||
className={styles.input}
|
className={styles.input}
|
||||||
max="59"
|
max="59"
|
||||||
min="0"
|
min="0"
|
||||||
|
required
|
||||||
type="number"
|
type="number"
|
||||||
value={minutes}
|
value={minutes}
|
||||||
onChange={e =>
|
onChange={e =>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue