mirror of
https://github.com/supabase/supabase.git
synced 2026-07-07 00:34:33 +08:00
* Move all studio files from /studio to /apps/studio. * Move studio specific prettier ignores. * Fix the ui references from studio. * Fix the css imports. * Fix all package.json issues. * Fix the prettier setup for the studio app. * Add .turbo folder to prettierignore. * Fix the github workflows.
36 lines
1002 B
TypeScript
36 lines
1002 B
TypeScript
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
|
import { FormHeader } from 'components/ui/Forms'
|
|
import Panel from 'components/ui/Panel'
|
|
import { Alert } from 'ui'
|
|
import DeleteProjectButton from './DeleteProjectButton'
|
|
|
|
const DeleteProjectPanel = () => {
|
|
const { project } = useProjectContext()
|
|
|
|
if (project === undefined) return null
|
|
|
|
return (
|
|
<section id="delete-project">
|
|
<FormHeader title="Delete Project" description="" />
|
|
<Panel>
|
|
<Panel.Content>
|
|
<Alert
|
|
variant="danger"
|
|
withIcon
|
|
title="Deleting this project will also remove your database."
|
|
>
|
|
<div>
|
|
<p className="mb-4 block">
|
|
Make sure you have made a backup if you want to keep your data.
|
|
</p>
|
|
<DeleteProjectButton />
|
|
</div>
|
|
</Alert>
|
|
</Panel.Content>
|
|
</Panel>
|
|
</section>
|
|
)
|
|
}
|
|
|
|
export default DeleteProjectPanel
|