Skip to content

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

Wrap panel in logic instead of just input field

Joshen Lim755409c0c8ee
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx
index 7446c544edd..10f1c9a3ccb 100644
--- a/studio/pages/new/[slug].tsx
+++ b/studio/pages/new/[slug].tsx
@@ -290,13 +290,13 @@ const Wizard: NextPageWithLayout = () => {
/>
</Panel.Content>
- <Panel.Content
- className={[
- 'Form section-block--body has-inputs-centered border-t border-b',
- 'border-panel-border-interior-light dark:border-panel-border-interior-dark',
- ].join(' ')}
- >
- {showCustomVersionInput && (
+ {showCustomVersionInput && (
+ <Panel.Content
+ className={[
+ 'Form section-block--body has-inputs-centered border-t border-b',
+ 'border-panel-border-interior-light dark:border-panel-border-interior-dark',
+ ].join(' ')}
+ >
<Input
id="custom-postgres-version"
layout="horizontal"
@@ -313,8 +313,8 @@ const Wizard: NextPageWithLayout = () => {
value={postgresVersion}
onChange={(event: any) => setPostgresVersion(event.target.value)}
/>
- )}
- </Panel.Content>
+ </Panel.Content>
+ )}
<Panel.Content className="border-b Form section-block--body has-inputs-centered border-panel-border-interior-light dark:border-panel-border-interior-dark">
<Input