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

This commit is contained in:
CatsJuice committed 2024-11-04 15:05:16 +00:00
1 parent de7b1ff516
commit 5b5dc26abf
1 file changed
+1 -11
@@ -279,17 +279,9 @@ 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>
) : (
<>
<div className={styles.recurringToggleRecurring}>
<span>
{t[
'com.affine.payment.cloud.pricing-plan.toggle-billed-yearly'
]()}
{t['com.affine.payment.cloud.pricing-plan.toggle-billed-yearly']()}
</span>
</div>
{yearlyDiscount ? (
@@ -299,8 +291,6 @@ export const CloudPlans = () => {
})}
</div>
) : null}
</>
)}
</div>
<Switch
checked={recurring === SubscriptionRecurring.Yearly}