mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(core): reorder plan card action button conditions (#10387)
This commit is contained in:
@@ -145,16 +145,16 @@ const ActionButton = ({ detail, recurring }: PlanCardProps) => {
|
||||
// if currentRecurring !== recurring => 'Change to {recurring} Billing'
|
||||
// else => 'Upgrade'
|
||||
|
||||
// not signed in
|
||||
if (!loggedIn) {
|
||||
return <SignUpAction>{signUpText}</SignUpAction>;
|
||||
}
|
||||
|
||||
// team
|
||||
if (detail.plan === SubscriptionPlan.Team) {
|
||||
return <UpgradeToTeam recurring={recurring} />;
|
||||
}
|
||||
|
||||
// not signed in
|
||||
if (!loggedIn) {
|
||||
return <SignUpAction>{signUpText}</SignUpAction>;
|
||||
}
|
||||
|
||||
// lifetime
|
||||
if (isBeliever) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user