@@ -24,7 +24,7 @@ import {
2424import { useSelect } from '@wordpress/data' ;
2525import { useEffect } from '@wordpress/element' ;
2626
27- import { useEffect , useRef } from '@wordpress/element' ;
27+ import { useRef } from '@wordpress/element' ;
2828
2929/**
3030 * Internal dependencies.
@@ -94,7 +94,7 @@ const Compression = ({
9494 }
9595
9696 manualQualityRef . current = getQuality ( settings . quality ) ;
97- } , [ isAutoQualityEnabled , settings . quality ] ) ;
97+ } , [ isAutoQualityEnabled , settings . quality ] ) ;
9898 const updateOption = ( option , value ) => {
9999 setCanSave ( true ) ;
100100 const data = { ...settings } ;
@@ -323,18 +323,18 @@ const Compression = ({
323323 < BaseControl
324324 help = { ! isAutoQualityEnabled && optimoleDashboardApp . strings . options_strings . quality_desc }
325325 >
326- < ToggleControl
327- label = { optimoleDashboardApp . strings . options_strings . quality_title }
328- help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . ml_quality_desc } } /> }
329- checked = { isAutoQualityEnabled }
330- disabled = { isLoading }
331- className = { classnames (
332- {
333- 'is-disabled' : isLoading
334- }
335- ) }
336- onChange = { handleAutoQualityToggle }
337- />
326+ < ToggleControl
327+ label = { optimoleDashboardApp . strings . options_strings . quality_title }
328+ help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . ml_quality_desc } } /> }
329+ checked = { isAutoQualityEnabled }
330+ disabled = { isLoading }
331+ className = { classnames (
332+ {
333+ 'is-disabled' : isLoading
334+ }
335+ ) }
336+ onChange = { handleAutoQualityToggle }
337+ />
338338 </ BaseControl >
339339
340340 { ! isAutoQualityEnabled && (
0 commit comments