Skip to content

The open alternative to Salesforce, designed for AI.

Fix downgrade to Pro CTA icon and wording (#17829)

Thomas des Francs3f202c5c6a82
diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx
index 06ff2e3a8eb..ea1f095efd0 100644
--- a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx
+++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx
@@ -34,6 +34,7 @@ import { useSetRecoilState } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import {
H2Title,
+ IconArrowDown,
IconArrowUp,
IconCalendarEvent,
IconCalendarRepeat,
@@ -473,7 +474,7 @@ export const SettingsBillingSubscriptionInfo = ({
{isEnterprisePlan &&
(!nextPlan || currentPlan.planKey === nextPlan.planKey) && (
<Button
- Icon={IconArrowUp}
+ Icon={IconArrowDown}
title={t`Switch to Pro`}
variant="secondary"
onClick={() => openModal(SWITCH_BILLING_PLAN_TO_PRO_MODAL_ID)}
diff --git a/packages/twenty-front/src/modules/billing/hooks/useBillingWording.ts b/packages/twenty-front/src/modules/billing/hooks/useBillingWording.ts
index 6cd13a3d180..741559ee16f 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useBillingWording.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useBillingWording.ts
@@ -108,15 +108,15 @@ export const useBillingWording = () => {
const prefix =
subscriptionStatus === SubscriptionStatus.Trialing
? t`Your trial period will end, and `
- : undefined;
+ : '';
const body = t`you will be charged $${enterprisePrice} per user per month`;
- const suffix = isYearlyPlan ? t` billed annually` : undefined;
+ const suffix = isYearlyPlan ? t` billed annually` : '';
return capitalize(`${prefix}${body}${suffix}.`);
};
const confirmationModalSwitchToProMessage = () => {
const beautifiedRenewDate = getBeautifiedRenewDate();
- const suffix1 = isYearlyPlan ? t` billed annually` : undefined;
+ const suffix1 = isYearlyPlan ? t` billed annually` : '';
const suffix2 = t`. The change will be applied the ${beautifiedRenewDate}.`;
const body = t`You will be charged $${proPrice} per user per month`;
return `${body}${suffix1}${suffix2}`;