Skip to content

Commit

Permalink
Page List: Change modal text (#52116)
Browse files Browse the repository at this point in the history
* Page List: Change modal text

* Apply suggestions from code review

* Update packages/block-library/src/page-list/convert-to-links-modal.js
  • Loading branch information
scruffian authored Jul 5, 2023
1 parent ec11804 commit b3d878a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { Button, Modal } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

export const convertDescription = __(
'This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking "Edit" below.'
'This page list is synced with the published pages on your site. Detach the page list to add, delete, or reorder pages yourself.'
);

export function ConvertToLinksModal( { onClick, onClose, disabled } ) {
return (
<Modal
onRequestClose={ onClose }
title={ __( 'Edit this menu' ) }
title={ __( 'Edit Page List' ) }
className={ 'wp-block-page-list-modal' }
aria={ {
describedby: 'wp-block-page-list-modal__description',
Expand All @@ -30,7 +30,7 @@ export function ConvertToLinksModal( { onClick, onClose, disabled } ) {
disabled={ disabled }
onClick={ onClick }
>
{ __( 'Edit' ) }
{ __( 'Detach' ) }
</Button>
</div>
</Modal>
Expand Down

0 comments on commit b3d878a

Please sign in to comment.