Skip to content
Prev Previous commit
Next Next commit
Move pref to interface group and coerce bool
  • Loading branch information
ramonjd committed Sep 6, 2024
commit 0512af881101e5e2ffbdaae8037000c474626e31
22 changes: 10 additions & 12 deletions packages/editor/src/components/preferences-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,6 @@ export default function EditorPreferencesModal( { extraSections = {} } ) {
'Enable pre-publish checks'
) }
/>
{ starterPatterns?.length && (
<PreferenceToggleControl
scope="core"
featureName="enableChoosePatternModal"
help={ __(
'Shows starter patterns when creating a new page.'
) }
label={ __(
'Show starter patterns'
) }
/>
) }
</PreferencesModalSection>
) }
{ extraSections?.general }
Expand Down Expand Up @@ -259,6 +247,16 @@ export default function EditorPreferencesModal( { extraSections = {} } ) {
'Show text instead of icons on buttons across the interface.'
) }
/>
{ !! starterPatterns?.length && (
<PreferenceToggleControl
scope="core"
featureName="enableChoosePatternModal"
help={ __(
'Shows starter patterns when creating a new page.'
) }
label={ __( 'Show starter patterns' ) }
/>
) }
</PreferencesModalSection>
</>
),
Expand Down