feat(timer): add opt-in visual completion flash
This commit is contained in:
1 parent
5314b342ff
commit
1aef1d882b
20 files changed
+87
-4
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { useUI } from '../store/useUI.js'
|
||||
|
||||
// A new key restarts the CSS sequence even when two timers finish close together.
|
||||
// The layer never catches taps and ends transparent, so it can safely stay mounted.
|
||||
export default function TimerFlash() {
|
||||
const id = useUI(s => s.timerFlashId)
|
||||
return id ? <div key={id} className="timer-flash" aria-hidden="true" /> : null
|
||||
}
|
||||
Reference in new issue
Block a user