@@ -82,17 +82,17 @@ const ToggleTmpComp = (function () {
82
82
loading = { props . loading }
83
83
disabled = { props . disabled }
84
84
onClick = { ( ) => {
85
- props . onEvent ( ' change' ) ;
85
+ props . onEvent ( " change" ) ;
86
86
props . value . onChange ( ! props . value . value ) ;
87
87
} }
88
88
>
89
- { props . iconPosition === ' right' && text }
89
+ { props . iconPosition === " right" && text }
90
90
{
91
91
< IconWrapper >
92
92
{ props . value . value ? props . trueIcon : props . falseIcon }
93
93
</ IconWrapper >
94
94
}
95
- { props . iconPosition === ' left' && text }
95
+ { props . iconPosition === " left" && text }
96
96
</ Button100 >
97
97
</ ButtonCompWrapperStyled >
98
98
) ;
@@ -101,13 +101,13 @@ const ToggleTmpComp = (function () {
101
101
< >
102
102
< Section name = { sectionNames . basic } >
103
103
{ children . value . propertyView ( {
104
- label : trans ( ' prop.defaultValue' ) ,
105
- tooltip : trans ( ' toggleButton.valueDesc' ) ,
104
+ label : trans ( " prop.defaultValue" ) ,
105
+ tooltip : trans ( " toggleButton.valueDesc" ) ,
106
106
} ) }
107
107
</ Section >
108
108
109
- { ( useContext ( EditorContext ) . editorModeStatus === ' logic' ||
110
- useContext ( EditorContext ) . editorModeStatus === ' both' ) && (
109
+ { ( useContext ( EditorContext ) . editorModeStatus === " logic" ||
110
+ useContext ( EditorContext ) . editorModeStatus === " both" ) && (
111
111
< >
112
112
< Section name = { sectionNames . interaction } >
113
113
{ children . onEvent . getPropertyView ( ) }
@@ -117,41 +117,41 @@ const ToggleTmpComp = (function () {
117
117
</ Section >
118
118
< Section name = { sectionNames . advanced } >
119
119
{ children . showText . propertyView ( {
120
- label : trans ( ' toggleButton.showText' ) ,
120
+ label : trans ( " toggleButton.showText" ) ,
121
121
} ) }
122
122
{ children . showText . getView ( ) &&
123
123
children . trueText . propertyView ( {
124
- label : trans ( ' toggleButton.trueLabel' ) ,
124
+ label : trans ( " toggleButton.trueLabel" ) ,
125
125
} ) }
126
126
{ children . showText . getView ( ) &&
127
127
children . falseText . propertyView ( {
128
- label : trans ( ' toggleButton.falseLabel' ) ,
128
+ label : trans ( " toggleButton.falseLabel" ) ,
129
129
} ) }
130
130
{ children . trueIcon . propertyView ( {
131
- label : trans ( ' toggleButton.trueIconLabel' ) ,
131
+ label : trans ( " toggleButton.trueIconLabel" ) ,
132
132
} ) }
133
133
{ children . falseIcon . propertyView ( {
134
- label : trans ( ' toggleButton.falseIconLabel' ) ,
134
+ label : trans ( " toggleButton.falseIconLabel" ) ,
135
135
} ) }
136
136
{ children . showText . getView ( ) &&
137
137
children . iconPosition . propertyView ( {
138
- label : trans ( ' toggleButton.iconPosition' ) ,
138
+ label : trans ( " toggleButton.iconPosition" ) ,
139
139
radioButton : true ,
140
140
} ) }
141
141
{ children . alignment . propertyView ( {
142
- label : trans ( ' toggleButton.alignment' ) ,
142
+ label : trans ( " toggleButton.alignment" ) ,
143
143
radioButton : true ,
144
144
} ) }
145
145
</ Section >
146
146
</ >
147
147
) }
148
148
149
- { ( useContext ( EditorContext ) . editorModeStatus === ' layout' ||
150
- useContext ( EditorContext ) . editorModeStatus === ' both' ) && (
149
+ { ( useContext ( EditorContext ) . editorModeStatus === " layout" ||
150
+ useContext ( EditorContext ) . editorModeStatus === " both" ) && (
151
151
< >
152
152
< Section name = { sectionNames . style } >
153
153
{ children . showBorder . propertyView ( {
154
- label : trans ( ' toggleButton.showBorder' ) ,
154
+ label : trans ( " toggleButton.showBorder" ) ,
155
155
} ) }
156
156
{ children . style . getPropertyView ( ) }
157
157
</ Section >
0 commit comments