Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update meta boxes to use new Section component.
  • Loading branch information
tellthemachines committed Mar 9, 2022
commit aca9f78682e8b0ace0d8c7f33568a1072c393097
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { filter, map } from 'lodash';
import { __ } from '@wordpress/i18n';
import { withSelect } from '@wordpress/data';
import { store as editorStore } from '@wordpress/editor';
import { PreferencesModalSection } from '@wordpress/interface';

/**
* Internal dependencies
*/
import Section from './section';
import { EnableCustomFieldsOption, EnablePanelOption } from './options';
import { store as editPostStore } from '../../store';

Expand All @@ -33,7 +33,7 @@ export function MetaBoxesSection( {
}

return (
<Section { ...sectionProps }>
<PreferencesModalSection { ...sectionProps }>
{ areCustomFieldsRegistered && (
<EnableCustomFieldsOption label={ __( 'Custom fields' ) } />
) }
Expand All @@ -44,7 +44,7 @@ export function MetaBoxesSection( {
panelName={ `meta-box-${ id }` }
/>
) ) }
</Section>
</PreferencesModalSection>
);
}

Expand Down