mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
clearer ternary
This commit is contained in:
1 parent
45e5447dcb
commit
1aa7b6dbf5
1 file changed
+9
-12
@@ -209,7 +209,7 @@ const RedirectToTemplates = () => {
|
||||
</ScaffoldSection>
|
||||
) : (
|
||||
<>
|
||||
{showConfigurationSection ? (
|
||||
{showConfigurationSection && (
|
||||
<ScaffoldSection isFullWidth>
|
||||
<ScaffoldSectionTitle className="mb-4">Configuration</ScaffoldSectionTitle>
|
||||
<Form_Shadcn_ {...templateForm}>
|
||||
@@ -266,17 +266,14 @@ const RedirectToTemplates = () => {
|
||||
</form>
|
||||
</Form_Shadcn_>
|
||||
</ScaffoldSection>
|
||||
) : (
|
||||
<>
|
||||
{hasOverridingRelatedSetting && (
|
||||
<ScaffoldSection isFullWidth>
|
||||
<OverridingSettingAdmonition
|
||||
relatedSetting={template.misc.relatedSetting}
|
||||
projectRef={ref as string}
|
||||
/>
|
||||
</ScaffoldSection>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{!showConfigurationSection && hasOverridingRelatedSetting && (
|
||||
<ScaffoldSection isFullWidth>
|
||||
<OverridingSettingAdmonition
|
||||
relatedSetting={template.misc.relatedSetting}
|
||||
projectRef={ref as string}
|
||||
/>
|
||||
</ScaffoldSection>
|
||||
)}
|
||||
<ScaffoldSection isFullWidth>
|
||||
{/* Only show title if there is an overriding related setting, as that causes multiple sections to be shown */}
|
||||
|
||||
Reference in new issue
Block a user