From 534a68a8b2a79274a8eee90f740d0923b5c2b22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Fri, 22 Mar 2019 13:05:18 +0100 Subject: [PATCH] Use MenuItem instead of IconButton --- .../block-settings-menu/plugin-block-settings-menu-item.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-item.js b/packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-item.js index 810d558346cc79..7a7451a983ce3b 100644 --- a/packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-item.js +++ b/packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-item.js @@ -6,7 +6,7 @@ import { difference } from 'lodash'; /** * WordPress dependencies */ -import { IconButton } from '@wordpress/components'; +import { MenuItem } from '@wordpress/components'; import { compose } from '@wordpress/compose'; /** @@ -89,7 +89,7 @@ const PluginBlockSettingsMenuItem = ( { allowedBlocks, icon, label, onClick, sma if ( ! shouldRenderItem( selectedBlocks, allowedBlocks ) ) { return null; } - return ( { ! small && label } - ); + ); } } );