fix: playing state
This commit is contained in:
parent
3ddb5b69e6
commit
b0d1f29a83
17
src/App.tsx
17
src/App.tsx
|
|
@ -64,7 +64,6 @@ function App() {
|
||||||
resetAlarm();
|
resetAlarm();
|
||||||
} else if (alarmSet) {
|
} else if (alarmSet) {
|
||||||
setHasWalked(false);
|
setHasWalked(false);
|
||||||
audioRef.current?.play();
|
|
||||||
}
|
}
|
||||||
}, [distance, alarmSet]);
|
}, [distance, alarmSet]);
|
||||||
|
|
||||||
|
|
@ -150,22 +149,6 @@ function App() {
|
||||||
<h1>Walk-up alarm</h1>
|
<h1>Walk-up alarm</h1>
|
||||||
<div className="input-wrapper">
|
<div className="input-wrapper">
|
||||||
<label htmlFor="alarm-time">Set time for the alarm</label>
|
<label htmlFor="alarm-time">Set time for the alarm</label>
|
||||||
{/* <TimeField
|
|
||||||
input={
|
|
||||||
<TextField
|
|
||||||
dark
|
|
||||||
rounded
|
|
||||||
id="alarm-time"
|
|
||||||
className="time-picker"
|
|
||||||
placeholder="08:00"
|
|
||||||
uncontrolled
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
value={alarm ? format(alarm, "HH:mm") : undefined}
|
|
||||||
onChange={(e) => {
|
|
||||||
setAlarm(parse(e.target.value, "HH:mm", new Date()));
|
|
||||||
}}
|
|
||||||
/> */}
|
|
||||||
<TextField
|
<TextField
|
||||||
dark
|
dark
|
||||||
rounded
|
rounded
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue