refactor(webui): adopt semantic page actions
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { CheckCircle2, Plus, RefreshCw } from "lucide-react";
|
import { CheckCircle2, Plus } from "lucide-react";
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
@@ -7,7 +7,6 @@ import {
|
|||||||
DismissibleAlert,
|
DismissibleAlert,
|
||||||
DocumentationHelpLink,
|
DocumentationHelpLink,
|
||||||
FilterBar,
|
FilterBar,
|
||||||
IconButton,
|
|
||||||
MetricCard,
|
MetricCard,
|
||||||
MetricGrid,
|
MetricGrid,
|
||||||
PageActionBar,
|
PageActionBar,
|
||||||
@@ -281,7 +280,7 @@ export default function PaymentsPage({ settings, auth }: PlatformRouteContext) {
|
|||||||
interfaceId="payments.workspace.actions"
|
interfaceId="payments.workspace.actions"
|
||||||
helpContextId="payments.workspace"
|
helpContextId="payments.workspace"
|
||||||
helpModuleId="payments"
|
helpModuleId="payments"
|
||||||
reloadAction={<IconButton label="Reload payment requests" icon={<RefreshCw size={17} />} variant="ghost" onClick={() => void reload()} disabled={refreshing} />}
|
reloadAction={{ onReload: () => void reload(), loading: refreshing, label: "Reload payment requests" }}
|
||||||
helpAction={<DocumentationHelpLink reference={{ topicId: "payments.requests-and-reconciliation", documentationType: "user" }} label="Open Payments documentation" />}
|
helpAction={<DocumentationHelpLink reference={{ topicId: "payments.requests-and-reconciliation", documentationType: "user" }} label="Open Payments documentation" />}
|
||||||
createAction={createButton}
|
createAction={createButton}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user