mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
small fixes
This commit is contained in:
1 parent
07ea342bf9
commit
bd09eb0875
4 files changed
+14
-6
No files matched your search
@@ -50,7 +50,7 @@ export const plans: PricingInformation[] = [
|
||||
costUnit: '/ month',
|
||||
href: 'https://supabase.com/dashboard/new/new-project',
|
||||
priceLabel: 'From',
|
||||
warning: 'Usage based plan',
|
||||
warning: 'Usage-based plan',
|
||||
priceMonthly: 25,
|
||||
description: 'For production applications with the option to scale.',
|
||||
features: [
|
||||
@@ -79,7 +79,7 @@ export const plans: PricingInformation[] = [
|
||||
costUnit: '/ month',
|
||||
href: 'https://forms.supabase.com/team',
|
||||
priceLabel: 'From',
|
||||
warning: 'Usage based plan',
|
||||
warning: 'Usage-based plan',
|
||||
priceMonthly: 599,
|
||||
description: 'Collaborate with different permissions and access patterns.',
|
||||
features: [
|
||||
|
||||
@@ -105,7 +105,7 @@ const PlanCTAButton = ({ plan, currentPlan, onSelectPlan }: PlanCTAButtonProps)
|
||||
)
|
||||
}
|
||||
|
||||
if (isTeamTier && plan.name === 'Team plan') {
|
||||
if (!isTeamTier && plan.name === 'Team plan') {
|
||||
return (
|
||||
<Link href="https://forms.supabase.com/team">
|
||||
<a>
|
||||
|
||||
@@ -35,7 +35,7 @@ export const PRICING_META = {
|
||||
description: 'For production applications with the option to scale.',
|
||||
priceMonthly: 25,
|
||||
priceUnit: '/ month',
|
||||
warning: 'Usage based plan',
|
||||
warning: 'Usage-based plan',
|
||||
preface: 'Everything in the Free plan, plus:',
|
||||
features: [
|
||||
'No project pausing',
|
||||
@@ -59,7 +59,7 @@ export const PRICING_META = {
|
||||
description: 'Collaborate with different permissions and access patterns.',
|
||||
priceMonthly: 599,
|
||||
priceUnit: '/ month',
|
||||
warning: 'Usage based plan',
|
||||
warning: 'Usage-based plan',
|
||||
preface: 'Everything in the Pro plan, plus:',
|
||||
features: [
|
||||
'Additional Organization member roles',
|
||||
|
||||
@@ -15,6 +15,8 @@ import ExitSurveyModal from './ExitSurveyModal'
|
||||
import MembersExceedLimitModal from './MembersExceedLimitModal'
|
||||
import PaymentMethodSelection from './PaymentMethodSelection'
|
||||
import { plans as subscriptionsPlans } from 'shared-data/plans'
|
||||
import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'
|
||||
import { PRICING_TIER_PRODUCT_IDS, STRIPE_PRODUCT_IDS } from 'lib/constants'
|
||||
|
||||
const TierUpdateSidePanel = () => {
|
||||
const { ui } = useStore()
|
||||
@@ -32,6 +34,7 @@ const TierUpdateSidePanel = () => {
|
||||
const onClose = () => snap.setPanelKey(undefined)
|
||||
|
||||
const { data: plans, isLoading: isLoadingPlans } = useProjectPlansQuery({ projectRef })
|
||||
const { data: subscription } = useProjectSubscriptionV2Query({ projectRef })
|
||||
const { data: addons } = useProjectAddonsQuery({ projectRef })
|
||||
const { data: membersExceededLimit } = useFreeProjectLimitCheckQuery({ slug })
|
||||
const { mutateAsync: updateSubscriptionTier } = useProjectSubscriptionUpdateMutation()
|
||||
@@ -168,9 +171,14 @@ const TierUpdateSidePanel = () => {
|
||||
<Button block disabled type="default">
|
||||
Current plan
|
||||
</Button>
|
||||
) : plan.id !== 'tier_team' ? (
|
||||
) : plan.id !== PRICING_TIER_PRODUCT_IDS.TEAM ? (
|
||||
<Button
|
||||
block
|
||||
// no self-serve downgrades from team plan right now
|
||||
disabled={
|
||||
plan.id !== PRICING_TIER_PRODUCT_IDS.TEAM &&
|
||||
['team', 'enterprise'].includes(subscription?.plan?.id || '')
|
||||
}
|
||||
type={isDowngradeOption ? 'default' : 'primary'}
|
||||
onClick={() => setSelectedTier(plan.id as any)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user