☀️ Performance
diff --git a/src/components/weather/WeatherTrendChart.tsx b/src/components/weather/WeatherTrendChart.tsx index d030223..b7c2d3d 100644 --- a/src/components/weather/WeatherTrendChart.tsx +++ b/src/components/weather/WeatherTrendChart.tsx @@ -7,6 +7,7 @@ import type { WeatherHistoryPoint } from '@/services/weather'; interface WeatherTrendChartProps { data: WeatherHistoryPoint[]; currentSessionId?: string; + className?: string; } const INDICATORS = [ @@ -63,7 +64,11 @@ function buildPath( const Y_TICKS = [1, 5, 10, 14, 19]; -export function WeatherTrendChart({ data, currentSessionId }: WeatherTrendChartProps) { +export function WeatherTrendChart({ + data, + currentSessionId, + className = 'mb-6', +}: WeatherTrendChartProps) { const [hoveredIdx, setHoveredIdx] = useState