diff --git a/packages/edit-navigation/src/components/menus-editor/create-menu-panel.js b/packages/edit-navigation/src/components/menus-editor/create-menu-area.js similarity index 91% rename from packages/edit-navigation/src/components/menus-editor/create-menu-panel.js rename to packages/edit-navigation/src/components/menus-editor/create-menu-area.js index 027b8a1823fb9e..01b83bcb2c6e49 100644 --- a/packages/edit-navigation/src/components/menus-editor/create-menu-panel.js +++ b/packages/edit-navigation/src/components/menus-editor/create-menu-area.js @@ -8,8 +8,9 @@ import { some } from 'lodash'; */ import { Button, - Panel, - PanelBody, + Card, + CardHeader, + CardBody, TextControl, withFocusReturn, } from '@wordpress/components'; @@ -23,7 +24,7 @@ const noticeId = 'edit-navigation-create-menu-error'; const menuNameMatches = ( menuName ) => ( menu ) => menu.name.toLowerCase() === menuName.toLowerCase(); -export function CreateMenuForm( { onCancel, onCreateMenu, menus } ) { +export function CreateMenuArea( { onCancel, onCreateMenu, menus } ) { const [ menuName, setMenuName ] = useState( '' ); const [ isCreatingMenu, setIsCreatingMenu ] = useState( false ); const menuSaveError = useSelect( ( select ) => @@ -92,8 +93,9 @@ export function CreateMenuForm( { onCancel, onCreateMenu, menus } ) { ); return ( - - + + { __( 'Create navigation menu' ) } +
) } -
-
+ + ); } -export default withFocusReturn( CreateMenuForm ); +export default withFocusReturn( CreateMenuArea ); diff --git a/packages/edit-navigation/src/components/menus-editor/index.js b/packages/edit-navigation/src/components/menus-editor/index.js index 51120900bc3036..04507772174cbd 100644 --- a/packages/edit-navigation/src/components/menus-editor/index.js +++ b/packages/edit-navigation/src/components/menus-editor/index.js @@ -15,7 +15,7 @@ import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ -import CreateMenuPanel from './create-menu-panel'; +import CreateMenuArea from './create-menu-area'; import MenuEditor from '../menu-editor'; export default function MenusEditor( { blockEditorSettings } ) { @@ -95,7 +95,7 @@ export default function MenusEditor( { blockEditorSettings } ) { { isCreateMenuPanelVisible && ( -