From 5b5dc26abfe0a0d13305fc2761fe31cff4e4e51a Mon Sep 17 00:00:00 2001 From: CatsJuice Date: Mon, 4 Nov 2024 15:05:16 +0000 Subject: [PATCH] chore(core): always display annually for cloud toggle (#8693) --- .../general-setting/plans/cloud-plans.tsx | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/cloud-plans.tsx b/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/cloud-plans.tsx index 23108bb12d..b435b4c5b3 100644 --- a/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/cloud-plans.tsx +++ b/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/cloud-plans.tsx @@ -279,28 +279,18 @@ export const CloudPlans = () => { const cloudToggle = (
- {recurring === SubscriptionRecurring.Yearly ? ( -
- {t['com.affine.payment.cloud.pricing-plan.toggle-yearly']()} +
+ + {t['com.affine.payment.cloud.pricing-plan.toggle-billed-yearly']()} + +
+ {yearlyDiscount ? ( +
+ {t['com.affine.payment.cloud.pricing-plan.toggle-discount']({ + discount: yearlyDiscount, + })}
- ) : ( - <> -
- - {t[ - 'com.affine.payment.cloud.pricing-plan.toggle-billed-yearly' - ]()} - -
- {yearlyDiscount ? ( -
- {t['com.affine.payment.cloud.pricing-plan.toggle-discount']({ - discount: yearlyDiscount, - })} -
- ) : null} - - )} + ) : null}