Description
When the deadline tracked by CountdownTimer passes, the timer continues counting downward into negative values (e.g. "-1d -3h"). After the deadline the timer should stop at zero and display a configurable "Expired" or "Time's up" label instead of a negative count.
Acceptance Criteria
Context
- Target file:
src/components/CountdownTimer.tsx
Description
When the deadline tracked by
CountdownTimerpasses, the timer continues counting downward into negative values (e.g. "-1d -3h"). After the deadline the timer should stop at zero and display a configurable "Expired" or "Time's up" label instead of a negative count.Acceptance Criteria
deadline < nowthe timer displays "Expired" (or aexpiredLabelprop value) instead of negative numbersContext
src/components/CountdownTimer.tsx