fix: update dark mode support for uptime chart tooltips to align with user theme preferences

This commit is contained in:
Usman Baig
2026-02-22 20:53:21 +01:00
parent c73c300620
commit 837c677b51
2 changed files with 3 additions and 2 deletions

View File

@@ -284,8 +284,8 @@ function UptimeStatusBar({
// * Component: Response time chart (Recharts area chart)
function ResponseTimeChart({ checks }: { checks: UptimeCheck[] }) {
const { theme } = useTheme()
const colors = theme === 'dark' ? CHART_COLORS_DARK : CHART_COLORS_LIGHT
const { resolvedTheme } = useTheme()
const colors = resolvedTheme === 'dark' ? CHART_COLORS_DARK : CHART_COLORS_LIGHT
// * Prepare data in chronological order (oldest first)
const data = [...checks]