fix: add empty state for no data available
This commit is contained in:
@@ -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 (
|
||||
<div className="bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden">
|
||||
{error && (
|
||||
|
||||
Reference in New Issue
Block a user