Skip to content

Commit

Permalink
fix: change default values
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Apr 29, 2024
1 parent 9d458fb commit 34d3c72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/modals/sleep-timer/sleep-timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface SleepTimerModalProps {

export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
const [hours, setHours] = useState<string>('0');
const [minutes, setMinutes] = useState<string>('0');
const [minutes, setMinutes] = useState<string>('10');
const [running, setRunning] = useState(false);
const [timeLeft, setTimeLeft] = useState(0);

Expand Down Expand Up @@ -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);
};

Expand Down Expand Up @@ -95,6 +95,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
className={styles.input}
id="hours"
min="0"
required
type="number"
value={hours}
onChange={e =>
Expand All @@ -113,6 +114,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
className={styles.input}
max="59"
min="0"
required
type="number"
value={minutes}
onChange={e =>
Expand Down

0 comments on commit 34d3c72

Please sign in to comment.