@@ -28,10 +28,7 @@ import {
2828} from "../../generators/withExposing" ;
2929import { IForm } from "../formComp/formDataConstants" ;
3030import { SimpleNameComp } from "../simpleNameComp" ;
31- import {
32- Button100 ,
33- ButtonStyleControl ,
34- } from "./videobuttonCompConstants" ;
31+ import { Button100 , ButtonStyleControl } from "./videobuttonCompConstants" ;
3532import { RefControl } from "comps/controls/refControl" ;
3633import { AutoHeightControl } from "comps/controls/autoHeightControl" ;
3734import {
@@ -247,16 +244,16 @@ let ButtonTmpComp = (function () {
247244 loading = { props . loading }
248245 style = {
249246 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+ }
256253 : {
257- aspectRatio : props . aspectRatio ,
258- borderRadius : props . style . radius ,
259- }
254+ aspectRatio : props . aspectRatio ,
255+ borderRadius : props . style . radius ,
256+ }
260257 }
261258 disabled = {
262259 props . disabled ||
@@ -276,7 +273,6 @@ let ButtonTmpComp = (function () {
276273 { props . prefixIcon }
277274 </ IconWrapper >
278275 ) }
279-
280276 </ Button100 >
281277 </ div >
282278 </ Container >
@@ -293,8 +289,8 @@ let ButtonTmpComp = (function () {
293289 } ) }
294290 </ Section >
295291
296-
297- { ( useContext ( EditorContext ) . editorModeStatus === "logic" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
292+ { ( useContext ( EditorContext ) . editorModeStatus === "logic" ||
293+ useContext ( EditorContext ) . editorModeStatus === "both" ) && (
298294 < Section name = { sectionNames . interaction } >
299295 { children . onEvent . getPropertyView ( ) }
300296 { disabledPropertyView ( children ) }
@@ -303,19 +299,22 @@ let ButtonTmpComp = (function () {
303299 </ Section >
304300 ) }
305301
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 } >
308306 { children . autoHeight . getPropertyView ( ) }
309307 { children . iconSize . propertyView ( {
310308 label : trans ( "button.iconSize" ) ,
311309 } ) }
312310 </ Section >
313311 < 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+ </ >
319318 ) }
320319 </ >
321320 ) )
0 commit comments