@@ -23,7 +23,7 @@ import {
2323
2424import { useSelect } from '@wordpress/data' ;
2525
26- import { useEffect , useRef } from '@wordpress/element' ;
26+ import { useRef } from '@wordpress/element' ;
2727
2828/**
2929 * Internal dependencies.
@@ -95,7 +95,7 @@ const Compression = ({
9595 }
9696
9797 manualQualityRef . current = getQuality ( settings . quality ) ;
98- } , [ isAutoQualityEnabled , settings . quality ] ) ;
98+ } , [ isAutoQualityEnabled , settings . quality ] ) ;
9999 const updateOption = ( option , value ) => {
100100 setCanSave ( true ) ;
101101 const data = { ...settings } ;
@@ -333,18 +333,18 @@ const Compression = ({
333333 < BaseControl
334334 help = { ! isAutoQualityEnabled && optimoleDashboardApp . strings . options_strings . quality_desc }
335335 >
336- < ToggleControl
337- label = { optimoleDashboardApp . strings . options_strings . quality_title }
338- help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . ml_quality_desc } } /> }
339- checked = { isAutoQualityEnabled }
340- disabled = { isLoading }
341- className = { classnames (
342- {
343- 'is-disabled' : isLoading
344- }
345- ) }
346- onChange = { handleAutoQualityToggle }
347- />
336+ < ToggleControl
337+ label = { optimoleDashboardApp . strings . options_strings . quality_title }
338+ help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . ml_quality_desc } } /> }
339+ checked = { isAutoQualityEnabled }
340+ disabled = { isLoading }
341+ className = { classnames (
342+ {
343+ 'is-disabled' : isLoading
344+ }
345+ ) }
346+ onChange = { handleAutoQualityToggle }
347+ />
348348 </ BaseControl >
349349
350350 { ! isAutoQualityEnabled && (
0 commit comments