diff --git a/frontend/src/components/TimerFlash.jsx b/frontend/src/components/TimerFlash.jsx index f620237..42efa31 100644 --- a/frontend/src/components/TimerFlash.jsx +++ b/frontend/src/components/TimerFlash.jsx @@ -1,8 +1,22 @@ +import { useEffect } from 'react' 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. +// Flips the app's real light/dark theme on and off twice (~2.4s) instead of laying an +// opaque black/white rectangle over the screen — the alert reads as the app itself +// blinking, and it always settles back on whatever theme the user actually had. export default function TimerFlash() { const id = useUI(s => s.timerFlashId) - return id ?