removed latest items for now
This commit is contained in:
@@ -13,7 +13,7 @@ import { useDashboardData } from "./features/dashboard";
|
|||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
const [mode, setMode] = React.useState<"expense" | "income">("expense");
|
const [mode, setMode] = React.useState<"expense" | "income">("expense");
|
||||||
const [selectedPeriodId, setSelectedPeriodId] = React.useState<string | null>(null);
|
const [selectedPeriodId, setSelectedPeriodId] = React.useState<string | null>(null);
|
||||||
const { data, latest, isLoading, error } = useDashboardData(mode);
|
const { data, isLoading, error } = useDashboardData(mode);
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
@@ -39,7 +39,6 @@ export default function Dashboard() {
|
|||||||
<ConfigurableDashboard
|
<ConfigurableDashboard
|
||||||
config={configuration}
|
config={configuration}
|
||||||
data={data}
|
data={data}
|
||||||
latest={latest}
|
|
||||||
onModeChange={(newMode) => setMode(newMode)}
|
onModeChange={(newMode) => setMode(newMode)}
|
||||||
selectedPeriodId={selectedPeriodId}
|
selectedPeriodId={selectedPeriodId}
|
||||||
onSelectPeriodId={(newPeriodId) => setSelectedPeriodId(newPeriodId)}
|
onSelectPeriodId={(newPeriodId) => setSelectedPeriodId(newPeriodId)}
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export interface DashboardConfig {
|
|||||||
export interface DashboardProps {
|
export interface DashboardProps {
|
||||||
config: DashboardConfig;
|
config: DashboardConfig;
|
||||||
data: any; // Aggregated data from features
|
data: any; // Aggregated data from features
|
||||||
latest: any[]; // Latest items from features
|
|
||||||
onModeChange?: (mode: DashboardMode) => void;
|
onModeChange?: (mode: DashboardMode) => void;
|
||||||
selectedPeriodId: string | null;
|
selectedPeriodId: string | null;
|
||||||
onSelectPeriodId: (id: string | null) => void;
|
onSelectPeriodId: (id: string | null) => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user