Skip to content

Commit

Permalink
add missing ClassifAI icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Sep 26, 2024
1 parent 00376be commit b4bfea6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/img/block-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions src/js/features/slot-fill/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
/**
* External dependencies
*/
import { PluginDocumentSettingPanel } from '@wordpress/edit-post';
import { Icon, SlotFillProvider, Slot, Fill } from '@wordpress/components';
import { PluginArea, registerPlugin } from '@wordpress/plugins';
import { __ } from '@wordpress/i18n';

const ClassifAIIcon = ( { icon } ) => (
<Icon className="components-panel__icon" icon={ icon } size={ 24 } />
);
/**
* Internal dependencies
*/
import { ReactComponent as icon } from '../../../../assets/img/block-icon.svg';

const ClassifAIPluginArea = () => {
return (
<PluginDocumentSettingPanel
title={ __( 'ClassifAI', 'classifai' ) }
icon={ ClassifAIIcon }
icon={ <Icon className="components-panel__icon" icon={ icon } size={ 24 } /> }

Check failure on line 18 in src/js/features/slot-fill/index.js

View workflow job for this annotation

GitHub Actions / eslint

Replace `·<Icon·className="components-panel__icon"·icon={·icon·}·size={·24·}·/>·` with `⏎↹↹↹↹<Icon⏎↹↹↹↹↹className="components-panel__icon"⏎↹↹↹↹↹icon={·icon·}⏎↹↹↹↹↹size={·24·}⏎↹↹↹↹/>⏎↹↹↹`
className="classifai-panel"
>
<SlotFillProvider>
Expand Down

0 comments on commit b4bfea6

Please sign in to comment.