fix: playing state

This commit is contained in:
Nicola Zambello 2021-12-21 18:48:20 +01:00
parent 3ddb5b69e6
commit b0d1f29a83

View file

@ -64,7 +64,6 @@ function App() {
resetAlarm();
} else if (alarmSet) {
setHasWalked(false);
audioRef.current?.play();
}
}, [distance, alarmSet]);
@ -150,22 +149,6 @@ function App() {
<h1>Walk-up alarm</h1>
<div className="input-wrapper">
<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
dark
rounded