Skip to content

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

Merge branch 'master' into chore/getlayout-refactor-6

Alaister Young83ca44cc2583
diff --cc studio/pages/project/[ref]/settings/api.tsx
index 8e150e926b0,037a56d167b..7232d745585
--- a/studio/pages/project/[ref]/settings/api.tsx
+++ b/studio/pages/project/[ref]/settings/api.tsx
@@@ -36,17 -36,16 +36,17 @@@ import
import { API_URL } from 'lib/constants'
import { uuidv4 } from 'lib/helpers'
import { patch, get } from 'lib/common/fetch'
-import { useStore, useJwtSecretUpdateStatus, withAuth } from 'hooks'
+import { useStore, useJwtSecretUpdateStatus } from 'hooks'
+ import Panel from 'components/to-be-cleaned/Panel'
+ import SchemaFormPanel from 'components/to-be-cleaned/forms/SchemaFormPanel'
+
import { SettingsLayout } from 'components/layouts'
import Flag from 'components/ui/Flag/Flag'
import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'
-
- import Panel from 'components/to-be-cleaned/Panel'
- import MultiSelectUI from 'components/to-be-cleaned/MultiSelect'
- import SchemaFormPanel from 'components/to-be-cleaned/forms/SchemaFormPanel'
+ import MultiSelect from 'components/ui/MultiSelect'
import { DisplayApiSettings } from 'components/ui/ProjectSettings'
+import { NextPageWithLayout } from 'types'
const JWT_SECRET_UPDATE_ERROR_MESSAGES = {
[JwtSecretUpdateError.APIServicesConfigurationUpdateFailed]:
@@@ -225,8 -224,8 +225,7 @@@ const ServiceList: FC<any> = ({ project
return (
<>
- <article className="max-w-4xl p-4">
- <DisplayApiSettings key="DisplayAPISettings" />
+ <div className="max-w-4xl p-4">
-
<section>
<Panel
title={
@@@ -345,8 -359,10 +359,9 @@@
</Panel.Content>
</Panel>
</section>
+
<section>{config && <PostgrestConfig config={config} projectRef={projectRef} />}</section>
- </article>
-
+ </div>
<ConfirmModal
danger
diff --cc studio/pages/project/[ref]/settings/database.tsx
index b405c4ed338,27b45c71bd9..7924ffaa606
--- a/studio/pages/project/[ref]/settings/database.tsx
+++ b/studio/pages/project/[ref]/settings/database.tsx
@@@ -21,13 -18,8 +18,9 @@@ import Panel from 'components/to-be-cle
import { ProjectUsageMinimal } from 'components/to-be-cleaned/Usage'
import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'
import ChartHandler from 'components/to-be-cleaned/Charts/ChartHandler'
+import { NextPageWithLayout } from 'types'
- dayjs.extend(customParseFormat)
- dayjs.extend(timezone)
- dayjs.extend(utc)
-
-const ProjectSettings = () => {
+const ProjectSettings: NextPageWithLayout = () => {
const router = useRouter()
const { ref } = router.query
@@@ -35,12 -27,14 +28,14 @@@
const project = ui.selectedProject
return (
- <div className="content h-full w-full overflow-y-auto">
- <div className="w-full max-w-5xl px-4 py-4">
- <Usage project={project} />
- <GeneralSettings projectRef={ref} />
- <SettingsLayout title="Database">
++ <div>
+ <div className="content h-full w-full overflow-y-auto">
+ <div className="w-full max-w-5xl px-4 py-4">
+ <Usage project={project} />
+ <GeneralSettings projectRef={ref} />
+ </div>
</div>
- </SettingsLayout>
+ </div>
)
}
diff --cc studio/pages/project/[ref]/settings/general.tsx
index 86adf4d7536,bf0e3bb4572..0cb7c622500
--- a/studio/pages/project/[ref]/settings/general.tsx
+++ b/studio/pages/project/[ref]/settings/general.tsx
@@@ -14,16 -14,17 +14,18 @@@ import { SettingsLayout } from 'compone
import Panel from 'components/to-be-cleaned/Panel'
import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'
import SchemaFormPanel from 'components/to-be-cleaned/forms/SchemaFormPanel'
- import TextConfirmModal from 'components/to-be-cleaned/ModalsDeprecated/TextConfirmModal'
+ import TextConfirmModal from 'components/ui/Modals/TextConfirmModal'
+import { NextPageWithLayout } from 'types'
-const ProjectSettings = () => {
+const ProjectSettings: NextPageWithLayout = () => {
return (
- <div className="content h-full w-full overflow-y-auto">
- <div className="mx-auto w-full">
- <GeneralSettings />
- <SettingsLayout title="General">
++ <div>
+ <div className="content h-full w-full overflow-y-auto">
+ <div className="mx-auto w-full">
+ <GeneralSettings />
+ </div>
</div>
- </SettingsLayout>
+ </div>
)
}