Skip to content

Commit 28634a7

Browse files
committed
formating removed-23
1 parent 59429a7 commit 28634a7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ const ToggleTmpComp = (function () {
8787
}}
8888
>
8989
{props.iconPosition === "right" && text}
90-
{
91-
<IconWrapper>
92-
{props.value.value ? props.trueIcon : props.falseIcon}
93-
</IconWrapper>
94-
}
90+
{<IconWrapper>{props.value.value ? props.trueIcon : props.falseIcon}</IconWrapper>}
9591
{props.iconPosition === "left" && text}
9692
</Button100>
9793
</ButtonCompWrapperStyled>
@@ -106,10 +102,8 @@ const ToggleTmpComp = (function () {
106102
})}
107103
</Section>
108104

109-
{(useContext(EditorContext).editorModeStatus === "logic" ||
110-
useContext(EditorContext).editorModeStatus === "both") && (
111-
<>
112-
<Section name={sectionNames.interaction}>
105+
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
106+
<><Section name={sectionNames.interaction}>
113107
{children.onEvent.getPropertyView()}
114108
{disabledPropertyView(children)}
115109
{hiddenPropertyView(children)}

0 commit comments

Comments
 (0)