From ece1330567c4e366391ebe208bc704079ced0ad5 Mon Sep 17 00:00:00 2001 From: twwu Date: Mon, 18 Aug 2025 11:25:48 +0800 Subject: [PATCH] feat(billing): add Enterprise plan component and update plan rendering logic --- .../billing/plan/assets/enterprise.tsx | 89 +++++++++++++++++++ .../components/billing/plan/assets/index.tsx | 1 + web/app/components/billing/plan/index.tsx | 5 +- 3 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 web/app/components/billing/plan/assets/enterprise.tsx diff --git a/web/app/components/billing/plan/assets/enterprise.tsx b/web/app/components/billing/plan/assets/enterprise.tsx new file mode 100644 index 0000000000..e123f68f5c --- /dev/null +++ b/web/app/components/billing/plan/assets/enterprise.tsx @@ -0,0 +1,89 @@ +const Enterprise = () => { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} + +export default Enterprise diff --git a/web/app/components/billing/plan/assets/index.tsx b/web/app/components/billing/plan/assets/index.tsx index 3ad9248d34..ffe48b3a3b 100644 --- a/web/app/components/billing/plan/assets/index.tsx +++ b/web/app/components/billing/plan/assets/index.tsx @@ -1,3 +1,4 @@ export { default as Sandbox } from './sandbox' export { default as Professional } from './professional' export { default as Team } from './team' +export { default as Enterprise } from './enterprise' diff --git a/web/app/components/billing/plan/index.tsx b/web/app/components/billing/plan/index.tsx index c1fe75fa02..737fc23c05 100644 --- a/web/app/components/billing/plan/index.tsx +++ b/web/app/components/billing/plan/index.tsx @@ -7,7 +7,6 @@ import { RiBook2Line, RiFileEditLine, RiGraduationCapLine, - RiGroup3Line, RiGroupLine, } from '@remixicon/react' import { Plan, SelfHostedPlan } from '../type' @@ -22,7 +21,7 @@ import VerifyStateModal from '@/app/education-apply/verify-state-modal' import { EDUCATION_VERIFYING_LOCALSTORAGE_ITEM } from '@/app/education-apply/constants' import { useEducationVerify } from '@/service/use-education' import { useModalContextSelector } from '@/context/modal-context' -import { Professional, Sandbox, Team } from './assets' +import { Enterprise, Professional, Sandbox, Team } from './assets' type Props = { loc: string @@ -69,7 +68,7 @@ const PlanComp: FC = ({ )} {(plan.type as any) === SelfHostedPlan.enterprise && ( - + )}