fix: react-doctor dialog/a11y/labels → 68/100 with 973 warnings

This commit is contained in:
Nora
2026-06-26 03:43:04 -06:00
parent d0bfec9d36
commit e97eb33bf1
34 changed files with 611 additions and 580 deletions
+6 -6
View File
@@ -20,6 +20,12 @@ import {
type ConversionFunnel,
} from "@/actions/analytics";
function getTrend(avgPrice: number) {
if (avgPrice > 10) return "up";
if (avgPrice < 5) return "down";
return "stable";
}
interface MetricCardProps {
title: string;
value: string | number;
@@ -147,12 +153,6 @@ function TopProductsTable({ products }: TopProductsTableProps) {
);
}
const getTrend = (avgPrice: number) => {
if (avgPrice > 10) return "up";
if (avgPrice < 5) return "down";
return "stable";
};
return (
<div className="bg-white rounded-xl shadow-sm p-6">
<h2 className="text-lg font-semibold text-gray-900 mb-4">Top Products</h2>