chore: polish up code

This commit is contained in:
2024-02-09 17:20:46 -06:00
committed by doprz
parent e49fc295ba
commit 7ee732b31e
2 changed files with 7 additions and 2 deletions

View File

@@ -72,7 +72,6 @@
align-items: flex-end;
gap: 17px;
flex: 1 0 0;
align-self: stretch;
border-radius: var(--border-radius-none, 0px);
}

View File

@@ -8,7 +8,13 @@ const hoursOfDay = Array.from({ length: 14 }, (_, index) => index + 8);
const grid = [];
for (let i = 0; i < 13; i++) {
const row = [];
row.push(hoursOfDay[i]);
let hour = hoursOfDay[i];
row.push(<>
<div key={hour} className={styles.timeBlock}>
<div className={styles.timeLabelContainer}><p>{(hour % 12 === 0 ? 12 : hour % 12) + (hour < 12 ? ' AM' : ' PM')}</p></div>
</div>
</>
);
row.push(Array.from({ length: 5 }, (_, j) => <CalendarCell key={j} />));
grid.push(row);
}