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:
@@ -73,6 +73,7 @@ export function SiteDashboardConsole(): ReactElement {
|
||||
const analyticsScope = useMemo(
|
||||
() => ({
|
||||
siteCode: site?.code ?? overview?.site_code ?? "",
|
||||
agentNodeId: undefined,
|
||||
}),
|
||||
[overview?.site_code, site?.code],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user