mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
fix(core): payment ui issues (#4672)
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ export const BillingSettings = () => {
|
|||||||
/>
|
/>
|
||||||
{/* TODO: loading fallback */}
|
{/* TODO: loading fallback */}
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<SettingWrapper title="information">
|
<SettingWrapper title="Information">
|
||||||
<SubscriptionSettings />
|
<SubscriptionSettings />
|
||||||
</SettingWrapper>
|
</SettingWrapper>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|||||||
+27
-15
@@ -144,12 +144,18 @@ const Settings = () => {
|
|||||||
<SettingHeader
|
<SettingHeader
|
||||||
title="Plans"
|
title="Plans"
|
||||||
subtitle={
|
subtitle={
|
||||||
// TODO: different subtitle for un-logged user
|
loggedIn ? (
|
||||||
<p>
|
<p>
|
||||||
You are current on the {currentPlan} plan. If you have any
|
You are current on the {currentPlan} plan. If you have any
|
||||||
questions, please contact our{' '}
|
questions, please contact our{' '}
|
||||||
<span>{/*TODO: add action*/}customer support</span>.
|
<span>{/*TODO: add action*/}customer support</span>.
|
||||||
</p>
|
</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}>
|
<div className={styles.wrapper}>
|
||||||
@@ -193,15 +199,21 @@ const Settings = () => {
|
|||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span className={styles.planPrice}>
|
{detail.type === 'dynamic' ? (
|
||||||
$
|
<span className={styles.planPriceDesc}>
|
||||||
{detail.type === 'dynamic'
|
Coming soon...
|
||||||
? '?'
|
</span>
|
||||||
: recurring === SubscriptionRecurring.Monthly
|
) : (
|
||||||
? detail.price
|
<>
|
||||||
: detail.yearlyPrice}
|
<span className={styles.planPrice}>
|
||||||
</span>
|
$
|
||||||
<span className={styles.planPriceDesc}>per month</span>
|
{recurring === SubscriptionRecurring.Monthly
|
||||||
|
? detail.price
|
||||||
|
: detail.yearlyPrice}
|
||||||
|
</span>
|
||||||
|
<span className={styles.planPriceDesc}>per month</span>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
{
|
{
|
||||||
// branches:
|
// branches:
|
||||||
|
|||||||
Reference in New Issue
Block a user