From 32318aa63f180438357ac9be3e7c2d3d0e164bf6 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Thu, 23 Jul 2026 09:07:34 +0000 Subject: [PATCH] Fix TS errors: vite/client types + recharts Tooltip formatter signature --- frontend/src/pages/Monthly.tsx | 2 +- frontend/src/pages/Rolling12Months.tsx | 2 +- frontend/src/pages/Rolling12Weeks.tsx | 2 +- frontend/tsconfig.json | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/Monthly.tsx b/frontend/src/pages/Monthly.tsx index a11e6c9..12d0d15 100644 --- a/frontend/src/pages/Monthly.tsx +++ b/frontend/src/pages/Monthly.tsx @@ -206,7 +206,7 @@ export default function Monthly() { `£${Math.round(v / 1000)}k`} tick={{ fontSize: 11 }} width={55} /> - fmtMoney(v)} /> + fmtMoney(Number(v))} /> {deptSummary.map(dep => ( diff --git a/frontend/src/pages/Rolling12Months.tsx b/frontend/src/pages/Rolling12Months.tsx index a8a847c..7a4141e 100644 --- a/frontend/src/pages/Rolling12Months.tsx +++ b/frontend/src/pages/Rolling12Months.tsx @@ -136,7 +136,7 @@ export default function Rolling12Months() { `£${Math.round(v / 1000)}k`} tick={{ fontSize: 11 }} width={55} /> - fmtMoney(v)} /> + fmtMoney(Number(v))} /> {deptCols.map(dep => ( diff --git a/frontend/src/pages/Rolling12Weeks.tsx b/frontend/src/pages/Rolling12Weeks.tsx index 2a547c8..eaf4b54 100644 --- a/frontend/src/pages/Rolling12Weeks.tsx +++ b/frontend/src/pages/Rolling12Weeks.tsx @@ -143,7 +143,7 @@ export default function Rolling12Weeks() { `£${Math.round(v / 1000)}k`} tick={{ fontSize: 11 }} width={55} /> - fmtMoney(v)} /> + fmtMoney(Number(v))} /> {deptCols.map(dep => ( diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 79a2287..3da20d6 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -13,7 +13,8 @@ "jsx": "react-jsx", "strict": true, "noUnusedLocals": false, - "noUnusedParameters": false + "noUnusedParameters": false, + "types": ["vite/client"] }, "include": ["src"] }