Skip to content

Commit

Permalink
Use MenuItem instead of IconButton (#14569)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored and ellatrix committed Apr 3, 2019
1 parent 3a8af4c commit 9b594f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -89,15 +89,15 @@ const PluginBlockSettingsMenuItem = ( { allowedBlocks, icon, label, onClick, sma
if ( ! shouldRenderItem( selectedBlocks, allowedBlocks ) ) {
return null;
}
return ( <IconButton
return ( <MenuItem
className="editor-block-settings-menu__control"
onClick={ compose( onClick, onClose ) }
icon={ icon || 'admin-plugins' }
label={ small ? label : undefined }
role={ role }
>
{ ! small && label }
</IconButton> );
</MenuItem> );
} }
</PluginBlockSettingsMenuGroup>
);
Expand Down

0 comments on commit 9b594f1

Please sign in to comment.