Skip to content

Commit

Permalink
Move option to general section
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jul 31, 2020
1 parent c96668f commit 303e827
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 4 additions & 6 deletions packages/edit-post/src/components/options-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export function OptionsModal( { isModalActive, isViewable, closeModal } ) {
'Enable the Most Used Blocks category in the block library'
) }
/>
<EnableFeature
featureName="showIconLabels"
label={ __( 'Show button text labels' ) }
/>
</Section>
<Section title={ __( 'Keyboard options' ) }>
<EnableFeature
Expand Down Expand Up @@ -105,12 +109,6 @@ export function OptionsModal( { isModalActive, isViewable, closeModal } ) {
</PageAttributesCheck>
</Section>
<MetaBoxesSection title={ __( 'Advanced panels' ) } />
<Section title={ __( 'Labels' ) }>
<EnableFeature
featureName="showIconLabels"
label={ __( 'Show button text labels' ) }
/>
</Section>
</Modal>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ exports[`OptionsModal should match snapshot when the modal is active 1`] = `
featureName="mostUsedBlocks"
label="Enable the Most Used Blocks category in the block library"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showIconLabels"
label="Show button text labels"
/>
</Section>
<Section
title="Keyboard options"
Expand Down Expand Up @@ -67,12 +71,5 @@ exports[`OptionsModal should match snapshot when the modal is active 1`] = `
<WithSelect(MetaBoxesSection)
title="Advanced panels"
/>
<Section
title="Icon Labels"
>
<WithSelect(WithDispatch(BaseOption))
label="Show Icon Labels"
/>
</Section>
</WithInstanceId(Modal)>
`;

0 comments on commit 303e827

Please sign in to comment.