Skip to content

Commit be3acff

Browse files
ineaguSoare-Robert-Daniel
authored andcommitted
fixed linting
1 parent 8d4376c commit be3acff

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

assets/src/dashboard/parts/connected/settings/Compression.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
import { useSelect } from '@wordpress/data';
2525
import { 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

Comments
 (0)