Skip to content

Commit 329828f

Browse files
committed
fix formating
1 parent 0c5ae1d commit 329828f

File tree

4 files changed

+28
-30
lines changed

4 files changed

+28
-30
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export default function CloudLibrary( props ) {
9191
<a href={options_strings.cloud_library_btn_link} className="font-semibold text-info text-sm hover:text-info inline-flex items-center">
9292
{options_strings.cloud_library_btn_text}
9393
<Icon
94-
icon={arrowRight}
95-
className="inline-block ml-2 fill-current"
96-
/>
94+
icon={arrowRight}
95+
className="inline-block ml-2 fill-current"
96+
/>
9797
</a>
9898
</div>
9999
)}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ const Compression = ({
144144
}
145145
) }
146146
onChange={ value => updateOption( 'retina_images', value ) }
147-
/>
148-
<hr className="my-8 border-grayish-blue"/>
147+
/>
148+
<hr className="my-8 border-grayish-blue"/>
149149
<ToggleControl
150150
label={ optimoleDashboardApp.strings.options_strings.enable_network_opt_title }
151151
help={ () => <p dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.options_strings.enable_network_opt_desc } } /> }

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

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ const Lazyload = ({
6666
<>
6767
<BaseControl className="mt-2" label={optimoleDashboardApp.strings.options_strings.lazyload_behaviour_title}>
6868
<p className="components-base-control__help mt-0" dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.options_strings.lazyload_behaviour_desc } } />
69-
69+
7070
<div className="flex gap-8 ml-4">
7171
<RadioControl
7272
labelPosition="side"
7373
className="lazyload_behaviour"
7474
selected={settings['lazyload_type'] || 'lazyload_all'}
7575
options={ [
76-
{
76+
{
7777
label: (
7878
<div>
79-
<strong>{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_fixed.replace('[N]', settings['skip_lazyload_images'])}</strong>
80-
{settings['lazyload_type'] === 'fixed' && (
79+
<strong>{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_fixed.replace( '[N]', settings['skip_lazyload_images'])}</strong>
80+
{'fixed' === settings['lazyload_type'] && (
8181
<>
8282
<p className="mt-2 text-sm text-gray-600">
8383
{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_fixed_desc}
@@ -90,43 +90,43 @@ const Lazyload = ({
9090
type="number"
9191
min={ 0 }
9292
className="basis-1/2 md:basis-1/3"
93-
onChange={value => updateValue('skip_lazyload_images', value)}
93+
onChange={value => updateValue( 'skip_lazyload_images', value )}
9494
/>
9595
</div>
9696
</>
9797
)}
9898
</div>
99-
),
100-
value: 'fixed'
99+
),
100+
value: 'fixed'
101101
},
102-
{
102+
{
103103
label: (
104104
<div>
105105
<strong>{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_viewport}</strong>
106-
{settings['lazyload_type'] === 'viewport' && (
106+
{'viewport' === settings['lazyload_type'] && (
107107
<p className="mt-2 text-sm text-gray-600">
108108
{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_viewport_desc}
109109
</p>
110110
)}
111111
</div>
112-
),
113-
value: 'viewport'
112+
),
113+
value: 'viewport'
114114
},
115-
{
115+
{
116116
label: (
117117
<div >
118118
<strong>{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_all}</strong>
119-
{settings['lazyload_type'] === 'all' && (
119+
{'all' === settings['lazyload_type'] && (
120120
<p className="mt-2 text-sm text-gray-600">
121121
{optimoleDashboardApp.strings.options_strings.lazyload_behaviour_all_desc}
122122
</p>
123123
)}
124124
</div>
125-
),
126-
value: 'all'
125+
),
126+
value: 'all'
127127
}
128128
] }
129-
onChange={value => updateValue('lazyload_type', value)}
129+
onChange={value => updateValue( 'lazyload_type', value )}
130130
/>
131131
</div>
132132
</BaseControl>
@@ -202,7 +202,6 @@ const Lazyload = ({
202202
<hr className="my-8 border-grayish-blue"/>
203203

204204

205-
206205
<ToggleControl
207206
label={ optimoleDashboardApp.strings.options_strings.enable_video_lazyload_title }
208207
help={ () => <p dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.options_strings.enable_video_lazyload_desc } } /> }

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ const Resize = ({
110110
<hr className="my-8 border-grayish-blue"/>
111111

112112

113-
114113
{isLazyloadEnabled && (
115114
<>
116115
<ToggleControl
@@ -119,16 +118,16 @@ const Resize = ({
119118
checked={ isScaleEnabled }
120119
disabled={ isLoading }
121120
className={ classnames(
122-
{
123-
'is-disabled': isLoading
124-
}
125-
) }
121+
{
122+
'is-disabled': isLoading
123+
}
124+
) }
126125
onChange={ value => updateOption( 'scale', ! value ) }
127-
/>
128-
<hr className="my-8 border-grayish-blue"/> </>
126+
/>
127+
<hr className="my-8 border-grayish-blue"/> </>
129128
) }
130129

131-
130+
132131
<ToggleControl
133132
label={ optimoleDashboardApp.strings.options_strings.enable_limit_dimensions_title }
134133
help={ () => <p dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.options_strings.enable_limit_dimensions_desc } } /> }

0 commit comments

Comments
 (0)