feat: add timeAndGrid div
This commit is contained in:
@@ -40,6 +40,10 @@
|
|||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeAndGrid {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
.timeColumn {
|
.timeColumn {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 573px;
|
min-height: 573px;
|
||||||
|
|||||||
@@ -31,19 +31,20 @@ const Calendar: React.FC = (props) => {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
{/* Displaying the rest of the calendar */}
|
{/* Displaying the rest of the calendar */}
|
||||||
<div className={styles.timeColumn}>
|
<div className={styles.timeAndGrid}>
|
||||||
{hoursOfDay.map((hour) => (
|
<div className={styles.timeColumn}>
|
||||||
<div key={hour} className={styles.timeLabelContainer}>
|
{hoursOfDay.map((hour) => (
|
||||||
<span>{hour % 12 === 0 ? 12 : hour % 12}:00 {hour < 12 ? 'AM' : 'PM'}</span>
|
<div key={hour} className={styles.timeLabelContainer}>
|
||||||
</div>
|
<span>{hour % 12 === 0 ? 12 : hour % 12}:00 {hour < 12 ? 'AM' : 'PM'}</span>
|
||||||
))}
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<div className={styles.calendarGrid}>
|
||||||
|
{grid.map((row, rowIndex) => (
|
||||||
|
row
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.calendarGrid}>
|
|
||||||
{grid.map((row, rowIndex) => (
|
|
||||||
row
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user