From f373afe88c40fcebbf6d46ede5f6a61dde72629a Mon Sep 17 00:00:00 2001 From: Juan Aldasoro Date: Thu, 25 May 2023 18:05:02 +0200 Subject: [PATCH] Update Post Link block variation icon to match the one used in the Link UI results. (#50190) * Update Post Link block variation icon to match the one used in the Link UI search results. * Update snapshot. --- packages/block-library/src/navigation-link/hooks.js | 4 ++-- .../src/navigation-link/test/__snapshots__/hooks.js.snap | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/navigation-link/hooks.js b/packages/block-library/src/navigation-link/hooks.js index 57a942199e114..585e4b160df79 100644 --- a/packages/block-library/src/navigation-link/hooks.js +++ b/packages/block-library/src/navigation-link/hooks.js @@ -4,7 +4,7 @@ import { category, page, - postContent, + postList, tag, customPostType, } from '@wordpress/icons'; @@ -12,7 +12,7 @@ import { function getIcon( variationName ) { switch ( variationName ) { case 'post': - return postContent; + return postList; case 'page': return page; case 'tag': diff --git a/packages/block-library/src/navigation-link/test/__snapshots__/hooks.js.snap b/packages/block-library/src/navigation-link/test/__snapshots__/hooks.js.snap index ac1dbd88a7564..7d7e2a15f08dc 100644 --- a/packages/block-library/src/navigation-link/test/__snapshots__/hooks.js.snap +++ b/packages/block-library/src/navigation-link/test/__snapshots__/hooks.js.snap @@ -27,10 +27,10 @@ exports[`hooks enhanceNavigationLinkVariations enhances variations with icon and "description": "A link to a post.", "icon": , "isActive": [Function],