NoProjectsOnPaidOrgInfo() — supabase Function Reference
Architecture documentation for the NoProjectsOnPaidOrgInfo() function in NoProjectsOnPaidOrgInfo.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx lines 10–36
export const NoProjectsOnPaidOrgInfo = ({ organization }: NoProjectsOnPaidOrgInfoProps) => {
const { data } = useOrgProjectsInfiniteQuery({ slug: organization?.slug })
const projectCount = data?.pages[0].pagination.count ?? 0
if (
projectCount > 0 ||
organization?.plan === undefined ||
organization.plan.id === 'free' ||
organization.plan.id === 'enterprise' ||
organization.plan.id === 'platform'
)
return null
return (
<Admonition
type="default"
title={`Your organization is on the ${organization.plan.name} plan with no projects running`}
description={
<div className="!max-w-full prose text-sm">
The monthly fees for the paid plan still apply. To cancel your subscription, head over to
your{' '}
<Link href={`/org/${organization?.slug}/billing`}>organization billing settings</Link>
</div>
}
/>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free