Skip to content

Commit

Permalink
Fixing JS linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Oct 21, 2024
1 parent edb99aa commit 6af8b89
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
18 changes: 9 additions & 9 deletions packages/block-editor/src/components/block-card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ import { useSelect, useDispatch } from '@wordpress/data';
import BlockIcon from '../block-icon';
import { store as blockEditorStore } from '../../store';

function BlockCard({
title,
icon,
description,
blockType,
className,
name,
inspectorBlockInfo,
}) {
function BlockCard( {
title,
icon,
description,
blockType,
className,
name,
inspectorBlockInfo,
} ) {
if ( blockType ) {
deprecated( '`blockType` property in `BlockCard component`', {
since: '5.7',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {
mayDisplayControlsKey,
} from '../block-edit/context';

const { Fill, Slot } = createSlotFill(
'InspectorBlockInfoFill'
);
const { Fill, Slot } = createSlotFill( 'InspectorBlockInfoFill' );

const InspectorBlockInfoFill = ( props ) => {
const context = useBlockEditContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
__experimentalGetBlockLabel as getBlockLabel,
} from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
import InspectorBlockInfoFill from '../inspector-block-info/inspector-block-info';

/**
* Internal dependencies
*/
import InspectorBlockInfoFill from '../inspector-block-info/inspector-block-info';
import { store as blockEditorStore } from '../../store';

/** @typedef {import('@wordpress/blocks').WPIcon} WPIcon */
Expand Down Expand Up @@ -99,7 +99,7 @@ export default function useBlockDisplayInformation( clientId ) {
positionLabel,
positionType: attributes?.style?.position?.type,
name: attributes?.metadata?.name,
inspectorBlockInfo: <InspectorBlockInfoFill.Slot />
inspectorBlockInfo: <InspectorBlockInfoFill.Slot />,
};
if ( ! match ) {
return blockTypeInfo;
Expand All @@ -114,7 +114,7 @@ export default function useBlockDisplayInformation( clientId ) {
positionLabel,
positionType: attributes?.style?.position?.type,
name: attributes?.metadata?.name,
inspectorBlockInfo: <InspectorBlockInfoFill.Slot />
inspectorBlockInfo: <InspectorBlockInfoFill.Slot />,
};
},
[ clientId ]
Expand Down

0 comments on commit 6af8b89

Please sign in to comment.