Skip to content

Commit

Permalink
Remove block icon from InstalledBlocksPrePublishPanel. (#69046)
Browse files Browse the repository at this point in the history
* Remove block icon from InstalledBlocksPrePublishPanel.

* Add inline comment.

Co-authored-by: afercia <afercia@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people authored Feb 5, 2025
1 parent 30dc889 commit 1405851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/block-directory/src/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import InstalledBlocksPrePublishPanel from './installed-blocks-pre-publish-panel
import getInstallMissing from './get-install-missing';

registerPlugin( 'block-directory', {
// The icon is explicitly set to undefined to prevent PluginPrePublishPanel
// from rendering the fallback icon pluginIcon.
icon: undefined,
render() {
return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import { _n, sprintf } from '@wordpress/i18n';
import { useSelect } from '@wordpress/data';
import { blockDefault } from '@wordpress/icons';
import { PluginPrePublishPanel } from '@wordpress/editor';

/**
Expand All @@ -24,7 +23,6 @@ export default function InstalledBlocksPrePublishPanel() {

return (
<PluginPrePublishPanel
icon={ blockDefault }
title={ sprintf(
// translators: %d: number of blocks (number).
_n(
Expand Down

0 comments on commit 1405851

Please sign in to comment.