mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): description of cancel is incorrect when cloud subscription is activated (#6530)
This commit is contained in:
@@ -254,9 +254,7 @@ const SubscriptionSettings = () => {
|
||||
]()}
|
||||
desc={t[
|
||||
'com.affine.payment.billing-setting.cancel-subscription.description'
|
||||
]({
|
||||
cancelDate: new Date(subscription.end).toLocaleDateString(),
|
||||
})}
|
||||
]()}
|
||||
>
|
||||
<CancelSubscription />
|
||||
</SettingRow>
|
||||
|
||||
@@ -116,7 +116,9 @@ export function getPlanDetail(t: T) {
|
||||
: detail.price;
|
||||
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 ? (
|
||||
<span className={planTitleTitleCaption}>
|
||||
{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-7": "{{capacity}}-days version history",
|
||||
"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.current-plan": "AFFiNE Cloud",
|
||||
"com.affine.payment.billing-setting.current-plan.description": "You are currently on the <1>{{planName}} plan</1>.",
|
||||
|
||||
Reference in New Issue
Block a user