@@ -16,8 +16,7 @@ import EdiTDorContext from "./ediTDorContext";
1616import { editdorReducer } from "./editorReducers" ;
1717
1818export const UPDATE_OFFLINE_TD = "UPDATE_OFFLINE_TD" ;
19- export const UPDATE_JSON_INDENTATION =
20- "UPDATE_JSON_INDENTATION" ;
19+ export const UPDATE_JSON_INDENTATION = "UPDATE_JSON_INDENTATION" ;
2120export const UPDATE_IS_MODIFIED = "UPDATE_IS_MODIFIED" ;
2221export const SET_FILE_HANDLE = "SET_FILE_HANDLE" ;
2322export const REMOVE_FORM_FROM_TD = "REMOVE_FORM_FROM_TD" ;
@@ -95,16 +94,16 @@ const GlobalState: React.FC<IGlobalStateProps> = ({ children }) => {
9594 nameRepository : "" ,
9695 dynamicValues : { } ,
9796 } ,
98- jsonIndentation :2 ,
99- updateJsonIndentation :( ) => { }
97+ jsonIndentation : 2 ,
98+ updateJsonIndentation : ( ) => { } ,
10099 } ) ;
101100
102- const updateJsonIndentation = ( indentation :number ) => {
101+ const updateJsonIndentation = ( indentation : number ) => {
103102 dispatch ( {
104- type :UPDATE_JSON_INDENTATION ,
105- jsonIndentation :indentation
106- } )
107- }
103+ type : UPDATE_JSON_INDENTATION ,
104+ jsonIndentation : indentation ,
105+ } ) ;
106+ } ;
108107
109108 const updateOfflineTD = ( offlineTD : string ) => {
110109 dispatch ( { type : UPDATE_OFFLINE_TD , offlineTD : offlineTD } ) ;
@@ -213,13 +212,13 @@ const GlobalState: React.FC<IGlobalStateProps> = ({ children }) => {
213212 updateValidationMessage,
214213 updateNorthboundConnection,
215214 updateContributeCatalog,
216- jsonIndentation :editdorState . jsonIndentation ,
217- updateJsonIndentation
215+ jsonIndentation : editdorState . jsonIndentation ,
216+ updateJsonIndentation,
218217 } }
219218 >
220219 { children }
221220 </ EdiTDorContext . Provider >
222221 ) ;
223222} ;
224223
225- export default GlobalState ;
224+ export default GlobalState ;
0 commit comments