mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-08 07:49:12 +00:00
refactor: op clock uses time format string
This commit is contained in:
committed by
Alex Christoffer Rasmussen
parent
a2505c838b
commit
bc1b3800c8
@@ -179,8 +179,9 @@ export function OffsetOverview() {
|
|||||||
|
|
||||||
export function ClockOverview({ className }: { className?: string }) {
|
export function ClockOverview({ className }: { className?: string }) {
|
||||||
const { clock } = useClock();
|
const { clock } = useClock();
|
||||||
|
const formattedClock = formatTime(clock);
|
||||||
|
|
||||||
return <TimeColumn label='Time now' value={formattedTime(clock)} className={className} />;
|
return <TimeColumn label='Time now' value={formattedClock} className={className} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TimerOverview({ className }: { className?: string }) {
|
export function TimerOverview({ className }: { className?: string }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user