remove unused vars

This commit is contained in:
Alex Holliday committed 2026-08-18 09:38:34 -07:00
1 parent c15d6e0851
commit 840c936501
4 files changed
+4 -9

No files matched your search

@@ -64,7 +64,7 @@ const padCells = (cells: ChartCell[], length: number): ChartCell[] => [
),
];
export const checksToCells = (checks: CheckSnapshot[], t: TFunction): ChartCell[] => {
export const checksToCells = (checks: CheckSnapshot[]): ChartCell[] => {
const source = checks.slice(-MAX_RECENT_CHECKS);
const heights = computeBarHeights(source);
const cells = source.map(
@@ -100,9 +100,9 @@ export const dailyBucketsToCells = (
heatKind:
barKind === "up"
? classifyResponseTime(true, bucket.avgResponseTime ?? 0)
: barKind, // degraded/down days keep their outcome color in the heatmap too
: barKind,
heightPct: heights.get(date) ?? MIN_HEIGHT_PCT,
responseTime: bucket.avgResponseTime ?? 0, // null (no RT data that day) → 0, excluded from footer stats like empty cells
responseTime: bucket.avgResponseTime ?? 0,
tooltip: <ThemedDailyTooltip bucket={bucket} />,
ariaLabel: t("pages.statusPages.monitorsList.chart.dayAria", {
date,