fix: react-doctor dialog/a11y/labels → 68/100 with 973 warnings
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user