From c4b166fd99a9a4b66b7c769d19f4e86989189b6d Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 26 May 2023 10:24:52 +0100 Subject: [PATCH 01/24] Remove edit control from preview --- .../src/components/link-control/link-preview.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/block-editor/src/components/link-control/link-preview.js b/packages/block-editor/src/components/link-control/link-preview.js index 04a67d44789948..05a39382d81984 100644 --- a/packages/block-editor/src/components/link-control/link-preview.js +++ b/packages/block-editor/src/components/link-control/link-preview.js @@ -14,7 +14,7 @@ import { Tooltip, } from '@wordpress/components'; import { filterURLForDisplay, safeDecodeURI } from '@wordpress/url'; -import { Icon, globe, info, linkOff, edit } from '@wordpress/icons'; +import { Icon, globe, info, linkOff } from '@wordpress/icons'; import { __unstableStripHTML as stripHTML } from '@wordpress/dom'; /** @@ -26,7 +26,6 @@ import useRichUrlData from './use-rich-url-data'; export default function LinkPreview( { value, - onEditClick, hasRichPreviews = false, hasUnlinkControl = false, onRemove, @@ -114,13 +113,6 @@ export default function LinkPreview( { - + { showOnCancel && ( + + ) } - ) } + +