@@ -52,16 +52,15 @@ export const addChild = ({
52
52
title : string ;
53
53
childType : string ;
54
54
HTMLInfo : object ;
55
- } ) => ( dispatch : ( arg : Action ) => void ) => {
56
- dispatch ( { type : ADD_CHILD , payload : { title, childType, HTMLInfo } } ) ;
57
- } ;
58
-
59
- export const addComponent = ( { title } : { title : string } ) => (
60
- dispatch : ( arg : Action ) => void
61
- ) => {
62
- dispatch ( { type : ADD_COMPONENT , payload : { title } } ) ;
63
- } ;
64
-
55
+ } ) : {
56
+ type : string ;
57
+ payload : { title : string ; childType : string ; HTMLInfo : object } ;
58
+ } => ( { type : ADD_CHILD , payload : { title, childType, HTMLInfo } } ) ;
59
+
60
+ export const addComponent = ( { title } : { title : string } ) => ( {
61
+ type : ADD_COMPONENT ,
62
+ payload : { title }
63
+ } ) ;
65
64
export const addProp = ( { key, type } : { key : string ; type : string } ) => ( {
66
65
type : ADD_PROP ,
67
66
payload : { key, type }
@@ -102,7 +101,6 @@ export const changeFocusChild = ({ childId }: { childId: number }) => (
102
101
dispatch ( { type : CHANGE_FOCUS_CHILD , payload : { childId } } ) ;
103
102
} ;
104
103
105
-
106
104
export const changeFocusComponent = ( { title } : { title : string } ) => (
107
105
dispatch : ( arg : Action ) => void
108
106
) => {
@@ -168,7 +166,6 @@ export const deleteAllData = () => ({
168
166
type : DELETE_ALL_DATA
169
167
} ) ;
170
168
171
-
172
169
export const deleteComponent = ( {
173
170
componentId,
174
171
stateComponents
@@ -306,7 +303,7 @@ export const toggleEditMode = ({ id }: { id: number }) => (
306
303
} ;
307
304
308
305
export const toggleNative = ( ) => ( {
309
- type : TOGGLE_NATIVE ,
306
+ type : TOGGLE_NATIVE
310
307
} ) ;
311
308
312
309
export const undo = ( ) => ( {
0 commit comments