diff --git a/packages/edit-navigation/src/components/menu-locations-editor/index.js b/packages/edit-navigation/src/components/menu-locations-editor/index.js index 2af9ed23a77c70..356bc6a8ee4407 100644 --- a/packages/edit-navigation/src/components/menu-locations-editor/index.js +++ b/packages/edit-navigation/src/components/menu-locations-editor/index.js @@ -5,8 +5,9 @@ import { useSelect } from '@wordpress/data'; import { SelectControl, Button, - Panel, - PanelBody, + Card, + CardHeader, + CardBody, Spinner, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; @@ -39,27 +40,30 @@ export default function MenuLocationsEditor() { if ( menuLocations.length === 0 ) { return ( - - + + { __( 'Menu locations' ) } + { __( 'There are no available menu locations' ) } - - + + ); } if ( menus.length === 0 ) { return ( - - + + { __( 'Menu locations' ) } + { __( 'There are no available menus' ) } - - + + ); } return ( - - + + { __( 'Menu locations' ) } + { event.preventDefault(); @@ -97,7 +101,7 @@ export default function MenuLocationsEditor() { { __( 'Save' ) } - - + + ); }
{ __( 'There are no available menu locations' ) }
{ __( 'There are no available menus' ) }