@@ -28,10 +28,7 @@ import {
28
28
} from "../../generators/withExposing" ;
29
29
import { IForm } from "../formComp/formDataConstants" ;
30
30
import { SimpleNameComp } from "../simpleNameComp" ;
31
- import {
32
- Button100 ,
33
- ButtonStyleControl ,
34
- } from "./videobuttonCompConstants" ;
31
+ import { Button100 , ButtonStyleControl } from "./videobuttonCompConstants" ;
35
32
import { RefControl } from "comps/controls/refControl" ;
36
33
import { AutoHeightControl } from "comps/controls/autoHeightControl" ;
37
34
import {
@@ -247,16 +244,16 @@ let ButtonTmpComp = (function () {
247
244
loading = { props . loading }
248
245
style = {
249
246
props . autoHeight
250
- ? {
251
- width : "100%" ,
252
- height : "100%" ,
253
- aspectRatio : props . aspectRatio ,
254
- borderRadius : props . style . radius ,
255
- }
247
+ ? {
248
+ width : "100%" ,
249
+ height : "100%" ,
250
+ aspectRatio : props . aspectRatio ,
251
+ borderRadius : props . style . radius ,
252
+ }
256
253
: {
257
- aspectRatio : props . aspectRatio ,
258
- borderRadius : props . style . radius ,
259
- }
254
+ aspectRatio : props . aspectRatio ,
255
+ borderRadius : props . style . radius ,
256
+ }
260
257
}
261
258
disabled = {
262
259
props . disabled ||
@@ -276,7 +273,6 @@ let ButtonTmpComp = (function () {
276
273
{ props . prefixIcon }
277
274
</ IconWrapper >
278
275
) }
279
-
280
276
</ Button100 >
281
277
</ div >
282
278
</ Container >
@@ -293,8 +289,8 @@ let ButtonTmpComp = (function () {
293
289
} ) }
294
290
</ Section >
295
291
296
-
297
- { ( useContext ( EditorContext ) . editorModeStatus === "logic" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
292
+ { ( useContext ( EditorContext ) . editorModeStatus === "logic" ||
293
+ useContext ( EditorContext ) . editorModeStatus === "both" ) && (
298
294
< Section name = { sectionNames . interaction } >
299
295
{ children . onEvent . getPropertyView ( ) }
300
296
{ disabledPropertyView ( children ) }
@@ -303,19 +299,22 @@ let ButtonTmpComp = (function () {
303
299
</ Section >
304
300
) }
305
301
306
- { ( useContext ( EditorContext ) . editorModeStatus === "layout" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
307
- < > < Section name = { sectionNames . layout } >
302
+ { ( useContext ( EditorContext ) . editorModeStatus === "layout" ||
303
+ useContext ( EditorContext ) . editorModeStatus === "both" ) && (
304
+ < >
305
+ < Section name = { sectionNames . layout } >
308
306
{ children . autoHeight . getPropertyView ( ) }
309
307
{ children . iconSize . propertyView ( {
310
308
label : trans ( "button.iconSize" ) ,
311
309
} ) }
312
310
</ Section >
313
311
< Section name = { sectionNames . style } >
314
- { children . style . getPropertyView ( ) }
315
- { children . aspectRatio . propertyView ( {
316
- label : trans ( "style.aspectRatio" ) ,
317
- } ) }
318
- </ Section > </ >
312
+ { children . style . getPropertyView ( ) }
313
+ { children . aspectRatio . propertyView ( {
314
+ label : trans ( "style.aspectRatio" ) ,
315
+ } ) }
316
+ </ Section >
317
+ </ >
319
318
) }
320
319
</ >
321
320
) )
0 commit comments