mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
feat: enhance PaymentConfigPage with refetch and loading state for license types
This commit is contained in:
@@ -59,7 +59,8 @@ function feeText(amount: string | number | null, currency: string): string {
|
||||
}
|
||||
|
||||
export function PaymentConfigPage() {
|
||||
const { data, isLoading, error } = useGetLicenseTypesQuery();
|
||||
const { data, isLoading, isFetching, error, refetch } =
|
||||
useGetLicenseTypesQuery();
|
||||
const { data: capabilities } = useGetPaymentCapabilitiesQuery();
|
||||
const [editing, setEditing] = useState<LicenseType | null>(null);
|
||||
const { setPageIndex, pageSize, setPageSize, paginate } = useServerTable();
|
||||
@@ -211,6 +212,8 @@ export function PaymentConfigPage() {
|
||||
onPageChange={setPageIndex}
|
||||
pageSize={pageSize}
|
||||
onPageSizeChange={setPageSize}
|
||||
refresh={refetch}
|
||||
isLoading={isFetching}
|
||||
/>
|
||||
|
||||
<GatewayPanel bypassEnabled={capabilities?.bypassEnabled} />
|
||||
|
||||
Reference in New Issue
Block a user