mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 16:22:21 +03:00
fix(core): payment ui issues (#4672)
This commit is contained in:
parent
95d37fc63f
commit
113b20f669
@ -44,7 +44,7 @@ export const BillingSettings = () => {
|
||||
/>
|
||||
{/* TODO: loading fallback */}
|
||||
<Suspense>
|
||||
<SettingWrapper title="information">
|
||||
<SettingWrapper title="Information">
|
||||
<SubscriptionSettings />
|
||||
</SettingWrapper>
|
||||
</Suspense>
|
||||
|
@ -144,12 +144,18 @@ const Settings = () => {
|
||||
<SettingHeader
|
||||
title="Plans"
|
||||
subtitle={
|
||||
// TODO: different subtitle for un-logged user
|
||||
loggedIn ? (
|
||||
<p>
|
||||
You are current on the {currentPlan} plan. If you have any
|
||||
questions, please contact our{' '}
|
||||
<span>{/*TODO: add action*/}customer support</span>.
|
||||
</p>
|
||||
) : (
|
||||
<p>
|
||||
This is the Pricing plans of AFFiNE Cloud. You can sign up or sign
|
||||
in to your account first.
|
||||
</p>
|
||||
)
|
||||
}
|
||||
/>
|
||||
<div className={styles.wrapper}>
|
||||
@ -193,15 +199,21 @@ const Settings = () => {
|
||||
)}
|
||||
</p>
|
||||
<p>
|
||||
{detail.type === 'dynamic' ? (
|
||||
<span className={styles.planPriceDesc}>
|
||||
Coming soon...
|
||||
</span>
|
||||
) : (
|
||||
<>
|
||||
<span className={styles.planPrice}>
|
||||
$
|
||||
{detail.type === 'dynamic'
|
||||
? '?'
|
||||
: recurring === SubscriptionRecurring.Monthly
|
||||
{recurring === SubscriptionRecurring.Monthly
|
||||
? detail.price
|
||||
: detail.yearlyPrice}
|
||||
</span>
|
||||
<span className={styles.planPriceDesc}>per month</span>
|
||||
</>
|
||||
)}
|
||||
</p>
|
||||
{
|
||||
// branches:
|
||||
|
Loading…
Reference in New Issue
Block a user