feat: unify upcoming event cards across pages

This commit is contained in:
2026-09-09 17:58:02 +03:00
parent 3017fc810e
commit 451400b63b
20 changed files with 313 additions and 140 deletions
+2 -11
View File
@@ -7,7 +7,7 @@ import {
brokerageAccountsQueryKey,
} from "@/entities/brokerage-account";
import {
type BrokerageEvent,
type BrokerageEventsPreviewState,
useBrokerageEvents,
} from "@/entities/brokerage-event";
import { type IncomeSummary, useIncomeSummary } from "@/entities/income";
@@ -42,16 +42,7 @@ type AccountPageRecentOperations =
items: BrokerageOperation[];
};
type AccountPageRecentEvents =
| {
state: "loading" | "error" | "empty";
to: string;
}
| {
state: "loaded";
to: string;
items: BrokerageEvent[];
};
type AccountPageRecentEvents = BrokerageEventsPreviewState;
type AccountPageIncomeSummary =
| { state: "loading" | "empty"; to: string }