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]}
|
domain={[0, 100]}
|
||||||
tick={{ fill: '#94a3b8', fontSize: 11 }}
|
tick={{ fill: '#94a3b8', fontSize: 11 }}
|
||||||
tickLine={{ stroke: '#475569' }}
|
tickLine={{ stroke: '#475569' }}
|
||||||
tickFormatter={(v: number) => `${v}%`}
|
tickFormatter={(v) => `${v}%`}
|
||||||
/>
|
/>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
contentStyle={{ backgroundColor: '#1e293b', border: '1px solid #334155', borderRadius: '8px' }}
|
contentStyle={{ backgroundColor: '#1e293b', border: '1px solid #334155', borderRadius: '8px' }}
|
||||||
labelStyle={{ color: '#94a3b8' }}
|
labelStyle={{ color: '#94a3b8' }}
|
||||||
formatter={(value: number, name: string) => [`${value}%`, name]}
|
formatter={(value, name) => [`${value}%`, name]}
|
||||||
/>
|
/>
|
||||||
<Legend wrapperStyle={{ color: '#94a3b8', fontSize: 12 }} />
|
<Legend wrapperStyle={{ color: '#94a3b8', fontSize: 12 }} />
|
||||||
<Line
|
<Line
|
||||||
|
|||||||
Reference in New Issue
Block a user