From d96e8800156149f7107edfd3609c4076f383cb3d Mon Sep 17 00:00:00 2001
From: Maidul Islam
Date: Thu, 29 May 2025 18:26:34 -0400
Subject: [PATCH] updates billing types else where
---
frontend/src/context/OrgPermissionContext/index.tsx | 1 +
frontend/src/context/index.tsx | 1 +
frontend/src/pages/organization/BillingPage/BillingPage.tsx | 4 ++--
.../components/BillingCloudTab/PreviewSection.tsx | 6 +++---
.../components/BillingDetailsTab/CompanyNameSection.tsx | 4 ++--
.../components/BillingDetailsTab/InvoiceEmailSection.tsx | 4 ++--
.../components/BillingDetailsTab/PmtMethodsSection.tsx | 4 ++--
.../components/BillingDetailsTab/PmtMethodsTable.tsx | 4 ++--
.../components/BillingDetailsTab/TaxIDSection.tsx | 4 ++--
.../BillingPage/components/BillingDetailsTab/TaxIDTable.tsx | 4 ++--
.../components/BillingTabGroup/BillingTabGroup.tsx | 4 ++--
11 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/frontend/src/context/OrgPermissionContext/index.tsx b/frontend/src/context/OrgPermissionContext/index.tsx
index acbbf3902..fccd53935 100644
--- a/frontend/src/context/OrgPermissionContext/index.tsx
+++ b/frontend/src/context/OrgPermissionContext/index.tsx
@@ -2,6 +2,7 @@ export { useOrgPermission } from "./OrgPermissionContext";
export type { TOrgPermission } from "./types";
export {
OrgPermissionActions,
+ OrgPermissionBillingActions,
OrgPermissionGroupActions,
OrgPermissionIdentityActions,
OrgPermissionSubjects
diff --git a/frontend/src/context/index.tsx b/frontend/src/context/index.tsx
index 8b64ee58a..c19c990dd 100644
--- a/frontend/src/context/index.tsx
+++ b/frontend/src/context/index.tsx
@@ -2,6 +2,7 @@ export { useOrganization } from "./OrganizationContext";
export type { TOrgPermission } from "./OrgPermissionContext";
export {
OrgPermissionActions,
+ OrgPermissionBillingActions,
OrgPermissionGroupActions,
OrgPermissionIdentityActions,
OrgPermissionSubjects,
diff --git a/frontend/src/pages/organization/BillingPage/BillingPage.tsx b/frontend/src/pages/organization/BillingPage/BillingPage.tsx
index 0ffe5abbb..d0b71cc21 100644
--- a/frontend/src/pages/organization/BillingPage/BillingPage.tsx
+++ b/frontend/src/pages/organization/BillingPage/BillingPage.tsx
@@ -2,7 +2,7 @@ import { Helmet } from "react-helmet";
import { useTranslation } from "react-i18next";
import { OrgPermissionCan } from "@app/components/permissions";
-import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context";
+import { OrgPermissionBillingActions, OrgPermissionSubjects } from "@app/context";
import { BillingTabGroup } from "./components";
@@ -24,7 +24,7 @@ export const BillingPage = () => {
diff --git a/frontend/src/pages/organization/BillingPage/components/BillingCloudTab/PreviewSection.tsx b/frontend/src/pages/organization/BillingPage/components/BillingCloudTab/PreviewSection.tsx
index 5741722bd..98309edbd 100644
--- a/frontend/src/pages/organization/BillingPage/components/BillingCloudTab/PreviewSection.tsx
+++ b/frontend/src/pages/organization/BillingPage/components/BillingCloudTab/PreviewSection.tsx
@@ -4,7 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { OrgPermissionCan } from "@app/components/permissions";
import { Button } from "@app/components/v2";
import {
- OrgPermissionActions,
+ OrgPermissionBillingActions,
OrgPermissionSubjects,
useOrganization,
useSubscription
@@ -112,7 +112,7 @@ export const PreviewSection = () => {
Get unlimited members, projects, RBAC, smart alerts, and so much more.
-
+
{(isAllowed) => (