({
queryKey: ['dashboardData'],
queryFn: fetchDashboardData,
});
@@ -20,7 +20,6 @@ const Index = () => {
return Error loading dashboard data: {error.message}
;
}
- // Provide default values if data is undefined (though useQuery's type should handle this better now)
const { totalStockValue, totalItems, totalOrders, totalCustomers } = data || {
totalStockValue: 0,
totalItems: 0,
@@ -60,7 +59,7 @@ const Index = () => {
/>
-
+ {/* Changed col-span-4 to col-span-7 to make Stock Overview full width */}
Stock Overview
@@ -68,14 +67,7 @@ const Index = () => {
-
-
- Recent Activity
-
-
-
-
-
+ {/* Removed Recent Activity Card */}
);