* Update Supabase docs URLs to use env variable Co-authored-by: a <a@alaisteryoung.com> * Refactor: Use DOCS_URL constant for documentation links This change centralizes documentation links using a new DOCS_URL constant, improving maintainability and consistency. Co-authored-by: a <a@alaisteryoung.com> * Refactor: Use DOCS_URL constant for all documentation links This change replaces hardcoded documentation URLs with a centralized constant, improving maintainability and consistency. Co-authored-by: a <a@alaisteryoung.com> * replace more instances * ci: Autofix updates from GitHub workflow * remaining instances * fix duplicate useRouter --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: alaister <10985857+alaister@users.noreply.github.com>
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import Link from 'next/link'
|
|
|
|
import { useParams } from 'common'
|
|
import { FormHeader } from 'components/ui/Forms/FormHeader'
|
|
import { DOCS_URL } from 'lib/constants'
|
|
import { Button } from 'ui'
|
|
import { NoticeBar } from './ui/NoticeBar'
|
|
|
|
// [Joshen] Only used for non AWS projects
|
|
export function DiskManagementPanelForm() {
|
|
const { ref: projectRef } = useParams()
|
|
|
|
return (
|
|
<div id="disk-management">
|
|
<FormHeader
|
|
title="Disk Management"
|
|
docsUrl={`${DOCS_URL}/guides/platform/database-size#disk-management`}
|
|
/>
|
|
<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>
|
|
}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|