chore(cleanup): remove unused imports, variables and fix missing hook dependencies

This commit is contained in:
Michael committed 2026-02-21 15:15:22 +01:00
1 parent c1bd0ae097
commit 86240f4b46
6 files changed
+11 -17

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
import { db } from "@/db";
import { ventesProduits } from "@/db/schema";
import { eq, and, ne, sql } from "drizzle-orm";
import { eq, and, ne } from "drizzle-orm";
import type { ProductRow, GammeCode } from "@/types/grid";
import { computeProductScores } from "@/lib/score-engine";
@@ -6,11 +6,6 @@ interface FinancialCellProps {
tauxMarge: number;
}
function getMarginColor(pct: number): string {
if (pct >= 45) return "#10b981"; // emerald-500
if (pct >= 20) return "#f59e0b"; // amber-500
return "#f43f5e"; // rose-500
}
export function FinancialCell({ totalCa, totalMarge, tauxMarge }: FinancialCellProps) {
const isHighMargin = tauxMarge >= 45;
@@ -225,7 +225,7 @@ export function HeatmapGrid({ onSelectionChange }: HeatmapGridProps) {
enableSorting: false,
cell: ({ row }) => <AiInsightBlock row={row.original} />,
},
], [draftChanges, setDraftGamme]);
], [draftChanges, setDraftGamme, MONTHS_12]);
const table = useReactTable({
data: rows,