refactor: accumulate times

This commit is contained in:
Carlos Valente
2024-08-26 10:28:56 +02:00
committed by Carlos Valente
parent 6e5034ef72
commit c43b6f37f9
2 changed files with 8 additions and 2 deletions
@@ -12,6 +12,7 @@ interface ProgressBarProps {
export default function ProgressBar(props: ProgressBarProps) {
const { startHour, endHour } = props;
// TODO: how to account for days?
const { clock } = useClock();
const width = getRelativePositionX(startHour * MILLIS_PER_HOUR, endHour * MILLIS_PER_HOUR, clock);