mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
refactor(server): payment service (#8906)
This commit is contained in:
@@ -586,15 +586,6 @@ const InvoiceLine = ({
|
||||
}
|
||||
}, [invoice.link, urlService]);
|
||||
|
||||
const planText =
|
||||
invoice.plan === SubscriptionPlan.AI
|
||||
? 'AFFiNE AI'
|
||||
: invoice.plan === SubscriptionPlan.Pro
|
||||
? invoice.recurring === SubscriptionRecurring.Lifetime
|
||||
? 'AFFiNE Cloud Believer'
|
||||
: 'AFFiNE Cloud'
|
||||
: null;
|
||||
|
||||
return (
|
||||
<SettingRow
|
||||
key={invoice.id}
|
||||
@@ -603,7 +594,7 @@ const InvoiceLine = ({
|
||||
invoice.status === InvoiceStatus.Paid
|
||||
? t['com.affine.payment.billing-setting.paid']()
|
||||
: ''
|
||||
} $${invoice.amount / 100} - ${planText}`}
|
||||
} $${invoice.amount / 100}`}
|
||||
>
|
||||
<Button onClick={open}>
|
||||
{t['com.affine.payment.billing-setting.view-invoice']()}
|
||||
|
||||
Reference in New Issue
Block a user