fix: Render PORT binding and Recharts TypeScript errors
This commit is contained in:
@@ -156,11 +156,11 @@ export const TrendsChart: React.FC<TrendsChartProps> = ({
|
||||
border: `1px solid ${theme.palette.divider}`,
|
||||
borderRadius: '8px',
|
||||
}}
|
||||
formatter={(value: any, name: string) => {
|
||||
formatter={(value: any, name: any) => {
|
||||
if (typeof value === 'number') {
|
||||
return [`${Math.round(value)}`, name];
|
||||
return [`${Math.round(value)}`, String(name)];
|
||||
}
|
||||
return [value, name];
|
||||
return [value, String(name)];
|
||||
}}
|
||||
labelFormatter={(label) => `Date: ${label}`}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user