fix(dashboard, settlement): update analytics scope and enhance settlement operations panel

Added 'agentNodeId' to the analytics scope in the SiteDashboardConsole for improved data handling. Introduced 'lastPage' calculation in the SettlementOperationsPanel to enhance pagination logic. Updated wallet console to use the TFunction type for better type safety in translation functions.
This commit is contained in:
2026-06-14 23:08:51 +08:00
parent 6395fcd391
commit e7b72cfdca
4 changed files with 8 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ export function SiteDashboardConsole(): ReactElement {
const analyticsScope = useMemo(
() => ({
siteCode: site?.code ?? overview?.site_code ?? "",
agentNodeId: undefined,
}),
[overview?.site_code, site?.code],
);