Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix frontend lint: drop void on invalidateQueries, reflow long signatures

Tre Dubrava8534ae5ca04f
diff --git a/frontend/src/hooks/api/billingV2/mutations.tsx b/frontend/src/hooks/api/billingV2/mutations.tsx
index 49fd4ceac7..c3da00bebf 100644
--- a/frontend/src/hooks/api/billingV2/mutations.tsx
+++ b/frontend/src/hooks/api/billingV2/mutations.tsx
@@ -69,7 +69,12 @@ export const useAddBillingV2PaymentMethod = () => {
// in a confirmation dialog before committing the add/remove.
export const usePreviewBillingV2Change = () => {
return useMutation({
- mutationFn: async ({ orgId, addProductId, cadence, removeProductId }: TPreviewBillingV2ChangeDTO) => {
+ mutationFn: async ({
+ orgId,
+ addProductId,
+ cadence,
+ removeProductId
+ }: TPreviewBillingV2ChangeDTO) => {
const {
data: { preview }
} = await apiRequest.post<{ preview: BillingV2Preview }>(
@@ -94,7 +99,7 @@ export const useAddBillingV2Product = () => {
return data;
},
onSuccess: (_data, { orgId }) => {
- void queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
+ queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
}
});
};
@@ -110,7 +115,7 @@ export const useRemoveBillingV2Product = () => {
return data;
},
onSuccess: (_data, { orgId }) => {
- void queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
+ queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
}
});
};
@@ -126,7 +131,7 @@ export const useCancelBillingV2Subscription = () => {
return data;
},
onSuccess: (_data, { orgId }) => {
- void queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
+ queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
}
});
};
@@ -142,7 +147,7 @@ export const useResumeBillingV2Subscription = () => {
return data;
},
onSuccess: (_data, { orgId }) => {
- void queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
+ queryClient.invalidateQueries({ queryKey: billingV2Keys.overview(orgId) });
}
});
};
diff --git a/frontend/src/pages/organization/BillingV2Page/components/AddProductModal.tsx b/frontend/src/pages/organization/BillingV2Page/components/AddProductModal.tsx
index 8bc00bd8b3..cde16d58ea 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/AddProductModal.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/AddProductModal.tsx
@@ -14,8 +14,8 @@ import {
AlertDialogTitle
} from "@app/components/v3";
import {
- BillingV2CatalogProduct,
BillingV2Cadence,
+ BillingV2CatalogProduct,
useAddBillingV2Product,
usePreviewBillingV2Change
} from "@app/hooks/api";
diff --git a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx
index 4349b96866..b0dd2ade4f 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx
@@ -280,7 +280,14 @@ type ProductRowProps = {
onContact: (prod: BillingV2CatalogProduct) => void;
};
-const ProductRow = ({ prod, entitlement, readOnly, onManage, onRemove, onContact }: ProductRowProps) => {
+const ProductRow = ({
+ prod,
+ entitlement,
+ readOnly,
+ onManage,
+ onRemove,
+ onContact
+}: ProductRowProps) => {
const entitled = Boolean(entitlement?.entitled);
let limitNote: string | null = null;
if (entitled && entitlement && entitlement.limit !== null && entitlement.limit !== undefined) {
diff --git a/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx b/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
index e57a3f7377..ab4f2204d7 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
@@ -72,8 +72,8 @@ export const RemoveProductModal = ({ orgId, product, onClose }: Props) => {
</AlertDialogMedia>
<AlertDialogTitle>Remove {product.name}?</AlertDialogTitle>
<AlertDialogDescription>
- {product.name} is removed right away. The unused time you already paid for is credited to
- your next invoice, and your other products are unaffected.
+ {product.name} is removed right away. The unused time you already paid for is credited
+ to your next invoice, and your other products are unaffected.
</AlertDialogDescription>
</AlertDialogHeader>
<div className="rounded-md border border-border bg-mineshaft-700/40 px-4 py-3 text-sm">