mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 01:43:43 +00:00
refactor: show timer clock in preview
This commit is contained in:
committed by
Carlos Valente
parent
f574fdbc02
commit
fb6896de76
@@ -27,6 +27,7 @@ export default function TimerPreview() {
|
||||
if (phase === TimerPhase.Pending) return 'Standby to start';
|
||||
if (phase === TimerPhase.Overtime && data.endMessage) return 'Custom end message';
|
||||
if (timerType === TimerType.TimeToEnd) return 'Time to end';
|
||||
if (timerType === TimerType.Clock) return 'Clock';
|
||||
if (timerType === TimerType.None) return timerPlaceholder;
|
||||
return 'Timer';
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user