Skip to content

Commit bf3933e

Browse files
committed
formating removed-19
1 parent ab9d93d commit bf3933e

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

client/packages/lowcoder/src/comps/comps/buttonComp/toggleButtonComp.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ const ToggleTmpComp = (function () {
8282
loading={props.loading}
8383
disabled={props.disabled}
8484
onClick={() => {
85-
props.onEvent('change');
85+
props.onEvent("change");
8686
props.value.onChange(!props.value.value);
8787
}}
8888
>
89-
{props.iconPosition === 'right' && text}
89+
{props.iconPosition === "right" && text}
9090
{
9191
<IconWrapper>
9292
{props.value.value ? props.trueIcon : props.falseIcon}
9393
</IconWrapper>
9494
}
95-
{props.iconPosition === 'left' && text}
95+
{props.iconPosition === "left" && text}
9696
</Button100>
9797
</ButtonCompWrapperStyled>
9898
);
@@ -101,13 +101,13 @@ const ToggleTmpComp = (function () {
101101
<>
102102
<Section name={sectionNames.basic}>
103103
{children.value.propertyView({
104-
label: trans('prop.defaultValue'),
105-
tooltip: trans('toggleButton.valueDesc'),
104+
label: trans("prop.defaultValue"),
105+
tooltip: trans("toggleButton.valueDesc"),
106106
})}
107107
</Section>
108108

109-
{(useContext(EditorContext).editorModeStatus === 'logic' ||
110-
useContext(EditorContext).editorModeStatus === 'both') && (
109+
{(useContext(EditorContext).editorModeStatus === "logic" ||
110+
useContext(EditorContext).editorModeStatus === "both") && (
111111
<>
112112
<Section name={sectionNames.interaction}>
113113
{children.onEvent.getPropertyView()}
@@ -117,41 +117,41 @@ const ToggleTmpComp = (function () {
117117
</Section>
118118
<Section name={sectionNames.advanced}>
119119
{children.showText.propertyView({
120-
label: trans('toggleButton.showText'),
120+
label: trans("toggleButton.showText"),
121121
})}
122122
{children.showText.getView() &&
123123
children.trueText.propertyView({
124-
label: trans('toggleButton.trueLabel'),
124+
label: trans("toggleButton.trueLabel"),
125125
})}
126126
{children.showText.getView() &&
127127
children.falseText.propertyView({
128-
label: trans('toggleButton.falseLabel'),
128+
label: trans("toggleButton.falseLabel"),
129129
})}
130130
{children.trueIcon.propertyView({
131-
label: trans('toggleButton.trueIconLabel'),
131+
label: trans("toggleButton.trueIconLabel"),
132132
})}
133133
{children.falseIcon.propertyView({
134-
label: trans('toggleButton.falseIconLabel'),
134+
label: trans("toggleButton.falseIconLabel"),
135135
})}
136136
{children.showText.getView() &&
137137
children.iconPosition.propertyView({
138-
label: trans('toggleButton.iconPosition'),
138+
label: trans("toggleButton.iconPosition"),
139139
radioButton: true,
140140
})}
141141
{children.alignment.propertyView({
142-
label: trans('toggleButton.alignment'),
142+
label: trans("toggleButton.alignment"),
143143
radioButton: true,
144144
})}
145145
</Section>
146146
</>
147147
)}
148148

149-
{(useContext(EditorContext).editorModeStatus === 'layout' ||
150-
useContext(EditorContext).editorModeStatus === 'both') && (
149+
{(useContext(EditorContext).editorModeStatus === "layout" ||
150+
useContext(EditorContext).editorModeStatus === "both") && (
151151
<>
152152
<Section name={sectionNames.style}>
153153
{children.showBorder.propertyView({
154-
label: trans('toggleButton.showBorder'),
154+
label: trans("toggleButton.showBorder"),
155155
})}
156156
{children.style.getPropertyView()}
157157
</Section>

0 commit comments

Comments
 (0)