diff --git a/packages/block-editor/src/components/link-control/index.js b/packages/block-editor/src/components/link-control/index.js index fd84e8fcb02bf7..a77b3f49ade874 100644 --- a/packages/block-editor/src/components/link-control/index.js +++ b/packages/block-editor/src/components/link-control/index.js @@ -17,7 +17,7 @@ import { focus } from '@wordpress/dom'; */ import LinkControlSettingsDrawer from './settings-drawer'; import LinkControlSearchInput from './search-input'; -import LinkOverview from './link-overview'; +import LinkPreview from './link-preview'; import useCreatePage from './use-create-page'; import { ViewerFill } from './viewer-slot'; @@ -235,7 +235,7 @@ function LinkControl( { ) } { value && ! isEditingLink && ! isCreatingPage && ( - setIsEditingLink( true ) } /> diff --git a/packages/block-editor/src/components/link-control/link-overview.js b/packages/block-editor/src/components/link-control/link-preview.js similarity index 95% rename from packages/block-editor/src/components/link-control/link-overview.js rename to packages/block-editor/src/components/link-control/link-preview.js index 95234e2fed5475..673ba1a7a7449a 100644 --- a/packages/block-editor/src/components/link-control/link-overview.js +++ b/packages/block-editor/src/components/link-control/link-preview.js @@ -15,7 +15,7 @@ import { filterURLForDisplay, safeDecodeURI } from '@wordpress/url'; */ import { ViewerSlot } from './viewer-slot'; -export default function LinkOverview( { value, onEditClick } ) { +export default function LinkPreview( { value, onEditClick } ) { const displayURL = ( value && filterURLForDisplay( safeDecodeURI( value.url ) ) ) || '';