SpendCapDisabledSection() — supabase Function Reference
Architecture documentation for the SpendCapDisabledSection() function in SpendCapDisabledSection.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/DiskManagement/ui/SpendCapDisabledSection.tsx lines 14–49
export function SpendCapDisabledSection() {
const { data: org } = useSelectedOrganizationQuery()
const { data: project } = useSelectedProjectQuery()
const isSpendCapEnabled =
org?.plan.id !== 'free' && !org?.usage_billing_enabled && project?.cloud_provider !== 'FLY'
return (
<AnimatePresence>
{isSpendCapEnabled && (
<motion.div
initial={{ opacity: 0, height: 0 }}
animate={{ opacity: 1, height: 'auto' }}
exit={{ opacity: 0, height: 0 }}
transition={{ duration: 0.2 }}
>
<Admonition type="default">
<AlertTitle>Disable spend cap to manage Disk configuration</AlertTitle>
<AlertDescription>
To access disk management features, you need to disable your spend cap. These features
offer more flexibility and control over your database disk size.
</AlertDescription>
<div className="mt-3">
<Link
href={`/org/${org?.slug}/billing?panel=costControl`}
className={cn(buttonVariants({ type: 'default', size: 'tiny' }))}
>
Disable spend cap
</Link>
</div>
</Admonition>
</motion.div>
)}
</AnimatePresence>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free