@@ -17,7 +17,6 @@ import {
17
17
import { useSelect } from '@wordpress/data' ;
18
18
19
19
import { useState } from '@wordpress/element' ;
20
- import Notice from '../../components/Notice' ;
21
20
22
21
const Resize = ( {
23
22
settings,
@@ -38,8 +37,6 @@ const Resize = ({
38
37
const isSmartResizeEnabled = 'disabled' !== settings [ 'resize_smart' ] ;
39
38
const isLimitDimensionsEnabled = 'disabled' !== settings [ 'limit_dimensions' ] ;
40
39
41
- const isLazyloadEnabled = 'disabled' !== settings . lazyload ;
42
- const isScaleEnabled = 'disabled' === settings . scale ;
43
40
const updateOption = ( option , value ) => {
44
41
setCanSave ( true ) ;
45
42
const data = { ...settings } ;
@@ -109,25 +106,6 @@ const Resize = ({
109
106
110
107
< hr className = "my-8 border-grayish-blue" />
111
108
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
-
131
109
< ToggleControl
132
110
label = { optimoleDashboardApp . strings . options_strings . enable_limit_dimensions_title }
133
111
help = { ( ) => < p dangerouslySetInnerHTML = { { __html : optimoleDashboardApp . strings . options_strings . enable_limit_dimensions_desc } } /> }
0 commit comments