feat(webui): add campaign metric drill-downs
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { DescriptionList } from "@govoplan/core-webui";
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Eye, RefreshCw } from "lucide-react";
|
||||
import { Eye } from "lucide-react";
|
||||
import { useSearchParams } from "react-router";
|
||||
import { ContentGrid,
|
||||
Button,
|
||||
Card,
|
||||
DataGrid,
|
||||
LoadingFrame,
|
||||
@@ -177,12 +176,10 @@ export default function AggregateReportsPage({ settings }: {settings: ApiSetting
|
||||
actions={<PageActionBar
|
||||
variant="overview"
|
||||
refreshable
|
||||
reloadAction={<Button
|
||||
onClick={() => void Promise.all([loadCampaigns(), selectedFromUrl ? loadReport(selectedFromUrl) : Promise.resolve()])}
|
||||
disabled={listLoading || reportLoading}
|
||||
>
|
||||
<RefreshCw size={16} aria-hidden="true" /> i18n:govoplan-campaign.refresh.56e3badc
|
||||
</Button>}
|
||||
reloadAction={{
|
||||
onReload: () => void Promise.all([loadCampaigns(), selectedFromUrl ? loadReport(selectedFromUrl) : Promise.resolve()]),
|
||||
loading: listLoading || reportLoading
|
||||
}}
|
||||
/>}
|
||||
>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user