Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Rename settings page

Terry Sutton87d6b3c6dee5
diff --git a/studio/pages/project/[ref]/storage/settings.tsx b/studio/pages/project/[ref]/storage/settings.tsx
deleted file mode 100644
index 84101380950..00000000000
--- a/studio/pages/project/[ref]/storage/settings.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import React, { useEffect } from 'react'
-import { useRouter } from 'next/router'
-import { observer } from 'mobx-react-lite'
-
-import { API_URL, PROJECT_STATUS } from 'lib/constants'
-import { useFlag, useStore } from 'hooks'
-import { post } from 'lib/common/fetch'
-import { StorageLayout } from 'components/layouts'
-import { StorageSettings } from 'components/to-be-cleaned/Storage'
-import { NextPageWithLayout } from 'types'
-
-/**
- * PageLayout is used to setup layout - as usual it will requires inject global store
- */
-const PageLayout: NextPageWithLayout = () => {
- const router = useRouter()
- const { ref } = router.query
-
- const { ui } = useStore()
- const project = ui.selectedProject
-
- const kpsEnabled = useFlag('initWithKps')
-
- useEffect(() => {
- if (project && project.status === PROJECT_STATUS.INACTIVE) {
- post(`${API_URL}/projects/${ref}/restore`, { kps_enabled: kpsEnabled })
- }
- }, [project])
-
- if (!project) return <div></div>
-
- return (
- <div className="storage-container flex flex-grow p-4">
- <StorageSettings projectRef={ref} />
- </div>
- )
-}
-
-PageLayout.getLayout = (page) => <StorageLayout title="Settings">{page}</StorageLayout>
-
-export default observer(PageLayout)