mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
cleanup + small refract
- websockets - event api
This commit is contained in:
@@ -14,11 +14,8 @@ export default function Countdown(props) {
|
||||
const [clock, setClock] = useState(time);
|
||||
let display = '-- : -- : --';
|
||||
|
||||
console.log('websocket: time and t', time);
|
||||
|
||||
useEffect(() => {
|
||||
setClock(time);
|
||||
console.log('websocket: time changed', time)
|
||||
}, [time]);
|
||||
|
||||
// prepare display string
|
||||
|
||||
Reference in New Issue
Block a user