fix: remove explicit type annotations on Recharts callbacks for v3 compat
This commit is contained in:
@@ -629,12 +629,12 @@ function TrendHistoryChart({ trends, ticker }: { trends: TrendSummary[]; ticker:
|
||||
domain={[0, 100]}
|
||||
tick={{ fill: '#94a3b8', fontSize: 11 }}
|
||||
tickLine={{ stroke: '#475569' }}
|
||||
tickFormatter={(v: number) => `${v}%`}
|
||||
tickFormatter={(v) => `${v}%`}
|
||||
/>
|
||||
<Tooltip
|
||||
contentStyle={{ backgroundColor: '#1e293b', border: '1px solid #334155', borderRadius: '8px' }}
|
||||
labelStyle={{ color: '#94a3b8' }}
|
||||
formatter={(value: number, name: string) => [`${value}%`, name]}
|
||||
formatter={(value, name) => [`${value}%`, name]}
|
||||
/>
|
||||
<Legend wrapperStyle={{ color: '#94a3b8', fontSize: 12 }} />
|
||||
<Line
|
||||
|
||||
Reference in New Issue
Block a user