fix: add empty state for no data available

This commit is contained in:
2026-05-16 12:50:34 +02:00
parent 56ad0593ad
commit b6510de7cb
+8
View File
@@ -80,6 +80,14 @@ export default function MostActiveStocks() {
); );
} }
if (stocks.length === 0) {
return (
<div className="bg-white rounded-xl shadow-lg p-6 border border-gray-200">
<p className="text-gray-600 text-center py-8">No data available</p>
</div>
);
}
return ( return (
<div className="bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden"> <div className="bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden">
{error && ( {error && (