fixes
This commit is contained in:
@@ -9,24 +9,15 @@ export interface ChartDataPoint extends _ChartDataPoint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ChartData {
|
export interface ChartData {
|
||||||
daily?: ChartDataPoint[];
|
|
||||||
weekly?: Record<string, ChartDataPoint[]>;
|
weekly?: Record<string, ChartDataPoint[]>;
|
||||||
monthly?: Record<string, ChartDataPoint[]>;
|
monthly?: Record<string, ChartDataPoint[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AggregatedDashboardData {
|
|
||||||
chartData: ChartData;
|
|
||||||
totalAmount: number;
|
|
||||||
topPayees: Array<{ payeeName: string; amount: number }>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface HistoryChartProps {
|
export interface HistoryChartProps {
|
||||||
header: string;
|
header: string;
|
||||||
summary?: string;
|
summary?: string;
|
||||||
tabs: string[];
|
tabs: string[];
|
||||||
data: ChartData;
|
data: ChartData;
|
||||||
periodType: "rolling" | "calendar";
|
|
||||||
onPeriodTypeChange: (p: "rolling" | "calendar") => void;
|
|
||||||
comparison: boolean;
|
comparison: boolean;
|
||||||
setComparison: (v: boolean) => void;
|
setComparison: (v: boolean) => void;
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
|
|||||||
Reference in New Issue
Block a user