diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 04487c7..84d9d69 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -15,6 +15,7 @@ import ErrorBoundary from './components/ErrorBoundary.jsx' import Modals from './components/Modals.jsx' import Toast from './components/Toast.jsx' import RestTimer from './components/RestTimer.jsx' +import TimerFlash from './components/TimerFlash.jsx' import Login from './views/Login.jsx' import MobileOnboarding from './views/MobileOnboarding.jsx' import Home from './views/Home.jsx' @@ -103,6 +104,7 @@ function Shell() { + ) } diff --git a/frontend/src/components/TimerFlash.jsx b/frontend/src/components/TimerFlash.jsx new file mode 100644 index 0000000..f620237 --- /dev/null +++ b/frontend/src/components/TimerFlash.jsx @@ -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 ?