From 362e6d88b4b448fffde74ddbace6b5c8e091514f Mon Sep 17 00:00:00 2001 From: estifanos Date: Wed, 12 Aug 2026 07:37:19 +0000 Subject: [PATCH] feat: enhance PaymentConfigPage with refetch and loading state for license types --- .../app/features/payment-config/pages/PaymentConfigPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage.tsx b/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage.tsx index fabcb20f4..5d4055386 100644 --- a/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage.tsx +++ b/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage.tsx @@ -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(null); const { setPageIndex, pageSize, setPageSize, paginate } = useServerTable(); @@ -211,6 +212,8 @@ export function PaymentConfigPage() { onPageChange={setPageIndex} pageSize={pageSize} onPageSizeChange={setPageSize} + refresh={refetch} + isLoading={isFetching} />