From 13fbcec5b39229561ea36cf599cd5754b5dbfba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 26 Nov 2024 14:20:59 +0000 Subject: [PATCH] chore: adapt billing page to custom billing scenarios --- .../BillingInformation/BillingInformation.tsx | 36 +++++++++++++------ frontend/src/interfaces/instance.ts | 1 + 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx b/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx index 09eb4a3f7e23..2a8a9dbab550 100644 --- a/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx +++ b/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformation.tsx @@ -46,26 +46,40 @@ export const BillingInformation = () => { const plan = `${instanceStatus.plan}${isPAYG ? ' Pay-as-You-Go' : ''}`; const inactive = instanceStatus.state !== InstanceState.ACTIVE; + const { isCustomBilling } = instanceStatus; return ( Billing information - In order to Upgrade trial you need - to provide us your billing information. - + + Your billing is managed by Unleash + + } + elseShow={ + <> + + In order to{' '} + Upgrade trial you need + to provide us your billing information. + + } + /> + + + {inactive + ? 'Once we have received your billing information we will upgrade your trial within 1 business day' + : 'Update your credit card and business information and change which email address we send invoices to'} + + } /> - - - {inactive - ? 'Once we have received your billing information we will upgrade your trial within 1 business day' - : 'Update your credit card and business information and change which email address we send invoices to'} -