diff --git a/packages/block-editor/src/hooks/layout.js b/packages/block-editor/src/hooks/layout.js index 54a376a0c6a4f..22d916d7b791b 100644 --- a/packages/block-editor/src/hooks/layout.js +++ b/packages/block-editor/src/hooks/layout.js @@ -11,8 +11,8 @@ import { addFilter } from '@wordpress/hooks'; import { getBlockSupport, hasBlockSupport } from '@wordpress/blocks'; import { useSelect } from '@wordpress/data'; import { - __experimentalToggleGroupControl as ToggleGroupControl, - __experimentalToggleGroupControlOption as ToggleGroupControlOption, + Button, + ButtonGroup, ToggleControl, PanelBody, privateApis as componentsPrivateApis, @@ -315,26 +315,21 @@ export default { function LayoutTypeSwitcher( { type, onChange } ) { return ( - + { getLayoutTypes().map( ( { name, label } ) => { return ( - + isPressed={ type === name } + onClick={ () => onChange( name ) } + > + { label } + ); } ) } - + ); }