Skip to content

Commit

Permalink
Rename LinkOverview to LinkPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jul 16, 2020
1 parent 5d4ea03 commit 5b030bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/link-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -235,7 +235,7 @@ function LinkControl( {
) }

{ value && ! isEditingLink && ! isCreatingPage && (
<LinkOverview
<LinkPreview
value={ value }
onEditClick={ () => setIsEditingLink( true ) }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) ) || '';

Expand Down

0 comments on commit 5b030bc

Please sign in to comment.