mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
fix(core): description of cancel is incorrect when cloud subscription is activated (#6530)
This commit is contained in:
+1
-3
@@ -254,9 +254,7 @@ const SubscriptionSettings = () => {
|
|||||||
]()}
|
]()}
|
||||||
desc={t[
|
desc={t[
|
||||||
'com.affine.payment.billing-setting.cancel-subscription.description'
|
'com.affine.payment.billing-setting.cancel-subscription.description'
|
||||||
]({
|
]()}
|
||||||
cancelDate: new Date(subscription.end).toLocaleDateString(),
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
<CancelSubscription />
|
<CancelSubscription />
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
|
|||||||
+3
-1
@@ -116,7 +116,9 @@ export function getPlanDetail(t: T) {
|
|||||||
: detail.price;
|
: detail.price;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{t['com.affine.payment.cloud.pro.title.price-monthly']({ price })}
|
{t['com.affine.payment.cloud.pro.title.price-monthly']({
|
||||||
|
price: '$' + price,
|
||||||
|
})}
|
||||||
{recurring === SubscriptionRecurring.Yearly ? (
|
{recurring === SubscriptionRecurring.Yearly ? (
|
||||||
<span className={planTitleTitleCaption}>
|
<span className={planTitleTitleCaption}>
|
||||||
{t['com.affine.payment.cloud.pro.title.billed-yearly']()}
|
{t['com.affine.payment.cloud.pro.title.billed-yearly']()}
|
||||||
|
|||||||
@@ -924,7 +924,7 @@
|
|||||||
"com.affine.payment.benefit-6": "Number of members per Workspace ≤ {{capacity}}",
|
"com.affine.payment.benefit-6": "Number of members per Workspace ≤ {{capacity}}",
|
||||||
"com.affine.payment.benefit-7": "{{capacity}}-days version history",
|
"com.affine.payment.benefit-7": "{{capacity}}-days version history",
|
||||||
"com.affine.payment.billing-setting.cancel-subscription": "Cancel Subscription",
|
"com.affine.payment.billing-setting.cancel-subscription": "Cancel Subscription",
|
||||||
"com.affine.payment.billing-setting.cancel-subscription.description": "Subscription cancelled, your pro account will expire on {{cancelDate}}",
|
"com.affine.payment.billing-setting.cancel-subscription.description": "Once you canceled subscription you will no longer enjoy the plan benefits.",
|
||||||
"com.affine.payment.billing-setting.change-plan": "Change Plan",
|
"com.affine.payment.billing-setting.change-plan": "Change Plan",
|
||||||
"com.affine.payment.billing-setting.current-plan": "AFFiNE Cloud",
|
"com.affine.payment.billing-setting.current-plan": "AFFiNE Cloud",
|
||||||
"com.affine.payment.billing-setting.current-plan.description": "You are currently on the <1>{{planName}} plan</1>.",
|
"com.affine.payment.billing-setting.current-plan.description": "You are currently on the <1>{{planName}} plan</1>.",
|
||||||
|
|||||||
Reference in New Issue
Block a user