@@ -33,8 +31,7 @@ function HeatmapSection() {
}
const { day, hour } = selectedDayAndHour;
- // console.log('day, hour, postPerHour', day, hour, postsPerDay[day || 0][hour || 0]);
- // {JSON.stringify(selectedDayAndHour)
}
+ const selectedPosts = (postsPerDay[day] && postsPerDay[day][hour]) || [];
return (
<>
@@ -43,13 +40,14 @@ function HeatmapSection() {
postsPerDay={postsPerDay}
selectedDayAndHour={selectedDayAndHour}
onClickHour={setSelectedDayAndHour}
+ // showPostsTable={setPostsTableIsVisible}
/>
-