Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore(core): always display annually for cloud toggle (#8693)

CatsJuice5b5dc26abfe0
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 = (
<div className={styles.recurringToggleWrapper}>
<div>
- {recurring === SubscriptionRecurring.Yearly ? (
- <div className={styles.recurringToggleRecurring}>
- {t['com.affine.payment.cloud.pricing-plan.toggle-yearly']()}
+ <div className={styles.recurringToggleRecurring}>
+ <span>
+ {t['com.affine.payment.cloud.pricing-plan.toggle-billed-yearly']()}
+ </span>
+ </div>
+ {yearlyDiscount ? (
+ <div className={styles.recurringToggleDiscount}>
+ {t['com.affine.payment.cloud.pricing-plan.toggle-discount']({
+ discount: yearlyDiscount,
+ })}
</div>
- ) : (
- <>
- <div className={styles.recurringToggleRecurring}>
- <span>
- {t[
- 'com.affine.payment.cloud.pricing-plan.toggle-billed-yearly'
- ]()}
- </span>
- </div>
- {yearlyDiscount ? (
- <div className={styles.recurringToggleDiscount}>
- {t['com.affine.payment.cloud.pricing-plan.toggle-discount']({
- discount: yearlyDiscount,
- })}
- </div>
- ) : null}
- </>
- )}
+ ) : null}
</div>
<Switch
checked={recurring === SubscriptionRecurring.Yearly}