Skip to content

Commit

Permalink
Corrects Linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi-PV committed Jun 12, 2024
1 parent b574bbc commit 8005c7b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import PropTypes from "prop-types";
import { __ } from "@wordpress/i18n";
import { useCallback, useRef } from "@wordpress/element";
import { useCallback, useRef, useState } from "@wordpress/element";
import { doAction } from "@wordpress/hooks";
import { useSelect, useDispatch } from "@wordpress/data";
import React, { useState } from 'react';

/* Yoast dependencies */
import { IconAIFixesButton } from "@yoast/components";
Expand All @@ -22,15 +21,15 @@ import { SparklesIcon } from "./sparkles-icon";
*
* @returns {JSX.Element} The AI Assessment Fixes button.
*/
const AIAssessmentFixesButton = ({ id, isPremium, className } ) => {
const AIAssessmentFixesButton = ( { id, isPremium } ) => {
const aiFixesId = id + "AIFixes";
const ariaLabel = __( "Optimize with AI", "wordpress-seo" );
const [ isModalOpen, , , setIsModalOpenTrue, setIsModalOpenFalse ] = useToggleState( false );
const activeAIButtonId = useSelect( select => select( "yoast-seo/editor" ).getActiveAIFixesButton(), [] );
const activeMarker = useSelect( select => select( "yoast-seo/editor" ).getActiveMarker(), [] );
const { setActiveAIFixesButton, setActiveMarker, setMarkerPauseStatus } = useDispatch( "yoast-seo/editor" );
const focusElementRef = useRef( null );
const [ buttonClass, setButtonClass ] = useState('');
const [buttonClass, setButtonClass] = useState( "" );

/**
* Handles the button press state.
Expand Down

0 comments on commit 8005c7b

Please sign in to comment.