diff --git a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingReceiptsTab/InvoicesTable.tsx b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingReceiptsTab/InvoicesTable.tsx
index bc6032a67..1f67a5cdd 100644
--- a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingReceiptsTab/InvoicesTable.tsx
+++ b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingReceiptsTab/InvoicesTable.tsx
@@ -18,7 +18,7 @@ import { useGetOrgInvoices } from "@app/hooks/api";
export const InvoicesTable = () => {
const { currentOrg } = useOrganization();
- const { data, isLoading } = useGetOrgInvoices(currentOrg?.id ?? "");
+ const { data, isPending } = useGetOrgInvoices(currentOrg?.id ?? "");
return (
@@ -32,7 +32,7 @@ export const InvoicesTable = () => {
- {!isLoading &&
+ {!isPending &&
data &&
data?.length > 0 &&
data.map(({ id, created, paid, number, total, invoice_pdf }) => {
@@ -65,8 +65,8 @@ export const InvoicesTable = () => {
);
})}
- {isLoading && }
- {!isLoading && data && data?.length === 0 && (
+ {isPending && }
+ {!isPending && data && data?.length === 0 && (
|
diff --git a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingSelfHostedTab/LicensesSection.tsx b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingSelfHostedTab/LicensesSection.tsx
index 919d8eabb..160a02f60 100644
--- a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingSelfHostedTab/LicensesSection.tsx
+++ b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/billing/-components/BillingSelfHostedTab/LicensesSection.tsx
@@ -16,7 +16,7 @@ import { useGetOrgLicenses } from "@app/hooks/api";
export const LicensesSection = () => {
const { currentOrg } = useOrganization();
- const { data, isLoading } = useGetOrgLicenses(currentOrg?.id ?? "");
+ const { data, isPending } = useGetOrgLicenses(currentOrg?.id ?? "");
return (
@@ -32,7 +32,7 @@ export const LicensesSection = () => {
|
- {!isLoading &&
+ {!isPending &&
data &&
data?.length > 0 &&
data.map(({ id, licenseKey, isActivated, createdAt, expiresAt }) => {
@@ -47,8 +47,8 @@ export const LicensesSection = () => {
);
})}
- {isLoading && }
- {!isLoading && data && data?.length === 0 && (
+ {isPending && }
+ {!isPending && data && data?.length === 0 && (
|
diff --git a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/AddGroupMemberModal.tsx b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/AddGroupMemberModal.tsx
index 38cf33c2d..bcebea5c7 100644
--- a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/AddGroupMemberModal.tsx
+++ b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/AddGroupMemberModal.tsx
@@ -43,7 +43,7 @@ export const AddGroupMembersModal = ({ popUp, handlePopUpToggle }: Props) => {
};
const offset = (page - 1) * perPage;
- const { data, isLoading } = useListGroupUsers({
+ const { data, isPending } = useListGroupUsers({
id: popUpData?.groupId,
groupSlug: popUpData?.slug,
offset,
@@ -113,8 +113,8 @@ export const AddGroupMembersModal = ({ popUp, handlePopUpToggle }: Props) => {
|
- {isLoading && }
- {!isLoading &&
+ {isPending && }
+ {!isPending &&
data?.users?.map(({ id, firstName, lastName, username }) => {
return (
@@ -130,7 +130,7 @@ export const AddGroupMembersModal = ({ popUp, handlePopUpToggle }: Props) => {
{(isAllowed) => {
return (
- {!isLoading && totalCount > 0 && (
+ {!isPending && totalCount > 0 && (
{
onChangePerPage={(newPerPage) => setPerPage(newPerPage)}
/>
)}
- {!isLoading && !data?.users?.length && (
+ {!isPending && !data?.users?.length && (
{
const { currentOrg } = useOrganization();
const { data: roles } = useGetOrgRoles(currentOrg?.id || "");
- const { mutateAsync: createMutateAsync, isLoading: createIsLoading } = useCreateGroup();
- const { mutateAsync: updateMutateAsync, isLoading: updateIsLoading } = useUpdateGroup();
+ const { mutateAsync: createMutateAsync, isPending: createIsLoading } = useCreateGroup();
+ const { mutateAsync: updateMutateAsync, isPending: updateIsLoading } = useUpdateGroup();
const { control, handleSubmit, reset } = useForm({
resolver: zodResolver(GroupFormSchema)
diff --git a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupDetailsSection.tsx b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupDetailsSection.tsx
index 2b4674007..a2010f43d 100644
--- a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupDetailsSection.tsx
+++ b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupDetailsSection.tsx
@@ -14,9 +14,9 @@ type Props = {
};
export const GroupDetailsSection = ({ groupId, handlePopUpOpen }: Props) => {
- const { data, isLoading } = useGetGroupById(groupId);
+ const { data, isPending } = useGetGroupById(groupId);
- if (isLoading) return ;
+ if (isPending) return ;
return data ? (
diff --git a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupMembersSection/GroupMembersTable.tsx b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupMembersSection/GroupMembersTable.tsx
index 8c3268dab..b0f2bf273 100644
--- a/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupMembersSection/GroupMembersTable.tsx
+++ b/frontend-v2/src/routes/_authenticate/_org_details/organization/$organizationId/groups/$groupId/-components/GroupMembersSection/GroupMembersTable.tsx
@@ -58,7 +58,7 @@ export const GroupMembersTable = ({ groupId, groupSlug, handlePopUpOpen }: Props
toggleOrderDirection
} = usePagination(GroupMembersOrderBy.Name, { initPerPage: 10 });
- const { data: groupMemberships, isLoading } = useListGroupUsers({
+ const { data: groupMemberships, isPending } = useListGroupUsers({
id: groupId,
groupSlug,
offset,
@@ -138,8 +138,8 @@ export const GroupMembersTable = ({ groupId, groupSlug, handlePopUpOpen }: Props
|