Skip to content

Commit

Permalink
Fix or ignore eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Dec 11, 2024
1 parent 7f8a319 commit d65472f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions mu-plugins/blocks/modal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
*/
import { __ } from '@wordpress/i18n';
import {
// eslint-disable-next-line @wordpress/no-unsafe-wp-apis -- experimental ok.
__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,
__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,
InspectorControls,
InnerBlocks,
InspectorControls,
RichText,
useBlockProps,
// eslint-disable-next-line @wordpress/no-unsafe-wp-apis -- experimental ok.
__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,
withColors,
} from '@wordpress/block-editor';
import { PanelBody, TextControl, ToggleControl } from '@wordpress/components';
import { registerBlockType } from '@wordpress/blocks';
// eslint-disable-next-line import/no-extraneous-dependencies
import { useState } from 'react';

/**
Expand Down Expand Up @@ -56,10 +59,10 @@ function Edit( {
? `var( --wp--preset--color--${ overlayColor.slug } )`
: customOverlayColor,
};
console.log( style );

const blockProps = useBlockProps( {
className: classes,
style,
style: style,
} );

return (
Expand Down
2 changes: 1 addition & 1 deletion mu-plugins/blocks/modal/src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { actions } = store( 'wporg/modal', {
* Close the modal only if the backdrop is clicked.
* Ignores clicks inside the modal itself.
*
* @param {Event} event
* @param {Event} event
*/
clickBackdrop: ( event ) => {
if ( event.target.classList.contains( 'wporg-modal__modal-backdrop' ) ) {
Expand Down

0 comments on commit d65472f

Please sign in to comment.