From 97e23e4b3a80bddc36cc98b13c7fb90092df0b30 Mon Sep 17 00:00:00 2001 From: nikhil2004 Date: Sat, 19 Sep 2026 02:05:20 +0530 Subject: [PATCH] fix(client): allow clicking empty cells to view historical incidents --- .../StatusPage/Status/themes/shared/ThemedHeatmap.tsx | 10 +++++++++- .../Status/themes/shared/ThemedHistogram.tsx | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/client/src/Pages/StatusPage/Status/themes/shared/ThemedHeatmap.tsx b/client/src/Pages/StatusPage/Status/themes/shared/ThemedHeatmap.tsx index 556c170e9..065f4e6fa 100644 --- a/client/src/Pages/StatusPage/Status/themes/shared/ThemedHeatmap.tsx +++ b/client/src/Pages/StatusPage/Status/themes/shared/ThemedHeatmap.tsx @@ -31,7 +31,15 @@ export const ThemedHeatmap = ({ cells, containerSx, cellSx, onCellClick }: Props return ( { + if (cell.date && onCellClick) { + onCellClick(cell.date); + } + }} /> ); } diff --git a/client/src/Pages/StatusPage/Status/themes/shared/ThemedHistogram.tsx b/client/src/Pages/StatusPage/Status/themes/shared/ThemedHistogram.tsx index d38bc68e6..6f1b2fe1f 100644 --- a/client/src/Pages/StatusPage/Status/themes/shared/ThemedHistogram.tsx +++ b/client/src/Pages/StatusPage/Status/themes/shared/ThemedHistogram.tsx @@ -51,7 +51,15 @@ export const ThemedHistogram = ({ return ( { + if (cell.date && onCellClick) { + onCellClick(cell.date); + } + }} /> ); }