Skip to content

Commit e24c276

Browse files
committed
formating removed-44
1 parent 3b49aad commit e24c276

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

client/packages/lowcoder/src/comps/comps/jsonComp/jsonExplorerComp.tsx

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,15 @@ const JsonExplorerContainer = styled.div<{
4242
${(props) => props.$animationStyle}
4343
height: 100%;
4444
overflow-y: scroll;
45-
background-color: ${(props) => bgColorMap[props.$theme] || '#ffffff'};
45+
background-color: ${(props) => bgColorMap[props.$theme] || "#ffffff"};
4646
border: 1px solid #d7d9e0;
4747
border-radius: 4px;
4848
padding: 10px;
4949
`;
5050

5151
let JsonExplorerTmpComp = (function () {
5252
const childrenMap = {
53-
value: withDefault(
54-
ArrayOrJSONObjectControl,
55-
JSON.stringify(defaultData, null, 2)
56-
),
53+
value: withDefault(ArrayOrJSONObjectControl, JSON.stringify(defaultData, null, 2)),
5754
indent: withDefault(NumberControl, 4),
5855
expandToggle: BoolControl.DEFAULT_TRUE,
5956
theme: dropdownControl(themeOptions, 'shapeshifter:inverted'),
@@ -78,27 +75,19 @@ let JsonExplorerTmpComp = (function () {
7875
return (
7976
<>
8077
<Section name={sectionNames.basic}>
81-
{children.value.propertyView({
82-
label: trans('export.jsonEditorDesc'),
83-
})}
78+
{children.value.propertyView({ label: trans("export.jsonEditorDesc") })}
8479
</Section>
8580

86-
{(useContext(EditorContext).editorModeStatus === 'logic' ||
87-
useContext(EditorContext).editorModeStatus === 'both') && (
81+
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
8882
<Section name={sectionNames.interaction}>
8983
{hiddenPropertyView(children)}
90-
{children.expandToggle.propertyView({
91-
label: trans('jsonExplorer.expandToggle'),
92-
})}
84+
{children.expandToggle.propertyView({ label: trans("jsonExplorer.expandToggle") })}
9385
</Section>
9486
)}
9587

96-
{(useContext(EditorContext).editorModeStatus === 'logic' ||
97-
useContext(EditorContext).editorModeStatus === 'both') && (
88+
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
9889
<Section name={sectionNames.advanced}>
99-
{children.indent.propertyView({
100-
label: trans('jsonExplorer.indent'),
101-
})}
90+
{children.indent.propertyView({ label: trans("jsonExplorer.indent") })}
10291
</Section>
10392
)}
10493

0 commit comments

Comments
 (0)