@@ -42,18 +42,15 @@ const JsonExplorerContainer = styled.div<{
42
42
${ ( props ) => props . $animationStyle }
43
43
height: 100%;
44
44
overflow-y: scroll;
45
- background-color: ${ ( props ) => bgColorMap [ props . $theme ] || ' #ffffff' } ;
45
+ background-color: ${ ( props ) => bgColorMap [ props . $theme ] || " #ffffff" } ;
46
46
border: 1px solid #d7d9e0;
47
47
border-radius: 4px;
48
48
padding: 10px;
49
49
` ;
50
50
51
51
let JsonExplorerTmpComp = ( function ( ) {
52
52
const childrenMap = {
53
- value : withDefault (
54
- ArrayOrJSONObjectControl ,
55
- JSON . stringify ( defaultData , null , 2 )
56
- ) ,
53
+ value : withDefault ( ArrayOrJSONObjectControl , JSON . stringify ( defaultData , null , 2 ) ) ,
57
54
indent : withDefault ( NumberControl , 4 ) ,
58
55
expandToggle : BoolControl . DEFAULT_TRUE ,
59
56
theme : dropdownControl ( themeOptions , 'shapeshifter:inverted' ) ,
@@ -78,27 +75,19 @@ let JsonExplorerTmpComp = (function () {
78
75
return (
79
76
< >
80
77
< Section name = { sectionNames . basic } >
81
- { children . value . propertyView ( {
82
- label : trans ( 'export.jsonEditorDesc' ) ,
83
- } ) }
78
+ { children . value . propertyView ( { label : trans ( "export.jsonEditorDesc" ) } ) }
84
79
</ Section >
85
80
86
- { ( useContext ( EditorContext ) . editorModeStatus === 'logic' ||
87
- useContext ( EditorContext ) . editorModeStatus === 'both' ) && (
81
+ { ( useContext ( EditorContext ) . editorModeStatus === "logic" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
88
82
< Section name = { sectionNames . interaction } >
89
83
{ hiddenPropertyView ( children ) }
90
- { children . expandToggle . propertyView ( {
91
- label : trans ( 'jsonExplorer.expandToggle' ) ,
92
- } ) }
84
+ { children . expandToggle . propertyView ( { label : trans ( "jsonExplorer.expandToggle" ) } ) }
93
85
</ Section >
94
86
) }
95
87
96
- { ( useContext ( EditorContext ) . editorModeStatus === 'logic' ||
97
- useContext ( EditorContext ) . editorModeStatus === 'both' ) && (
88
+ { ( useContext ( EditorContext ) . editorModeStatus === "logic" || useContext ( EditorContext ) . editorModeStatus === "both" ) && (
98
89
< Section name = { sectionNames . advanced } >
99
- { children . indent . propertyView ( {
100
- label : trans ( 'jsonExplorer.indent' ) ,
101
- } ) }
90
+ { children . indent . propertyView ( { label : trans ( "jsonExplorer.indent" ) } ) }
102
91
</ Section >
103
92
) }
104
93
0 commit comments