fix: Render PORT binding and Recharts TypeScript errors

This commit is contained in:
ajaysi
2026-04-03 13:02:59 +05:30
parent 3f2d9104d9
commit 4fbbe9c8b4
10 changed files with 7210 additions and 3165 deletions

View File

@@ -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}`}
/>