@@ -17,7 +17,6 @@ import {
1717import { useSelect } from '@wordpress/data' ;
1818
1919import { useState } from '@wordpress/element' ;
20- import Notice from '../../components/Notice' ;
2120
2221const Resize = ( {
2322 settings,
@@ -38,8 +37,6 @@ const Resize = ({
3837 const isSmartResizeEnabled = 'disabled' !== settings [ 'resize_smart' ] ;
3938 const isLimitDimensionsEnabled = 'disabled' !== settings [ 'limit_dimensions' ] ;
4039
41- const isLazyloadEnabled = 'disabled' !== settings . lazyload ;
42- const isScaleEnabled = 'disabled' === settings . scale ;
4340 const updateOption = ( option , value ) => {
4441 setCanSave ( true ) ;
4542 const data = { ...settings } ;
@@ -109,25 +106,6 @@ const Resize = ({
109106
110107 < hr className = "my-8 border-grayish-blue" />
111108
112-
113- { isLazyloadEnabled && (
114- < >
115- < ToggleControl
116- label = { optimoleDashboardApp . strings . options_strings . toggle_scale }
117- help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . scale_desc } } /> }
118- checked = { isScaleEnabled }
119- disabled = { isLoading }
120- className = { classnames (
121- {
122- 'is-disabled' : isLoading
123- }
124- ) }
125- onChange = { value => updateOption ( 'scale' , ! value ) }
126- />
127- < hr className = "my-8 border-grayish-blue" /> </ >
128- ) }
129-
130-
131109 < ToggleControl
132110 label = { optimoleDashboardApp . strings . options_strings . enable_limit_dimensions_title }
133111 help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . enable_limit_dimensions_desc } } /> }
0 commit comments