From ea3b451266b397f460e8e8729c3787148ea67d13 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Tue, 5 May 2026 11:42:27 +0530 Subject: [PATCH] removed latest items for now --- src/Dashboard.tsx | 3 +-- src/components/Dashboard/Dashboard.models.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Dashboard.tsx b/src/Dashboard.tsx index baa9522..d54b763 100644 --- a/src/Dashboard.tsx +++ b/src/Dashboard.tsx @@ -13,7 +13,7 @@ import { useDashboardData } from "./features/dashboard"; export default function Dashboard() { const [mode, setMode] = React.useState<"expense" | "income">("expense"); const [selectedPeriodId, setSelectedPeriodId] = React.useState(null); - const { data, latest, isLoading, error } = useDashboardData(mode); + const { data, isLoading, error } = useDashboardData(mode); if (isLoading) { return ( @@ -39,7 +39,6 @@ export default function Dashboard() { setMode(newMode)} selectedPeriodId={selectedPeriodId} onSelectPeriodId={(newPeriodId) => setSelectedPeriodId(newPeriodId)} diff --git a/src/components/Dashboard/Dashboard.models.ts b/src/components/Dashboard/Dashboard.models.ts index d653383..7ab1a92 100644 --- a/src/components/Dashboard/Dashboard.models.ts +++ b/src/components/Dashboard/Dashboard.models.ts @@ -44,7 +44,6 @@ export interface DashboardConfig { export interface DashboardProps { config: DashboardConfig; data: any; // Aggregated data from features - latest: any[]; // Latest items from features onModeChange?: (mode: DashboardMode) => void; selectedPeriodId: string | null; onSelectPeriodId: (id: string | null) => void;