Files
supabase/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx
Francesco Sansalvadore 40af66c39d chore: db settings form pattern (#41263)
* chore(studio): update connection pooling form layout
* chore(studio): ssl config form pattern
* chore(studio): database settings form styling
* chore(ui): add contrast to PrePostTab text
2025-12-11 17:21:30 +00:00

49 lines
1.4 KiB
TypeScript

import Link from 'next/link'
import { useParams } from 'common'
import { DOCS_URL } from 'lib/constants'
import { Button } from 'ui'
import { NoticeBar } from './ui/NoticeBar'
import {
PageSection,
PageSectionContent,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns'
import { DocsButton } from '../../ui/DocsButton'
// [Joshen] Only used for non AWS projects
export function DiskManagementPanelForm() {
const { ref: projectRef } = useParams()
return (
<PageSection id="disk-management">
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Disk Management</PageSectionTitle>
</PageSectionSummary>
<DocsButton href={`${DOCS_URL}/guides/platform/database-size#disk-management`} />
</PageSectionMeta>
<PageSectionContent>
<NoticeBar
visible={true}
type="default"
title="Disk Management has moved"
description="Disk configuration is now managed alongside Project Compute on the new Compute and Disk page."
actions={
<Button type="default" asChild>
<Link
href={`/project/${projectRef}/settings/compute-and-disk`}
className="!no-underline"
>
Go to Compute and Disk
</Link>
</Button>
}
/>
</PageSectionContent>
</PageSection>
)
}