@@ -24,14 +24,14 @@ const useStyles = makeStyles({
24
24
flexDirection : 'row' ,
25
25
justifyContent : 'space-evenly' ,
26
26
textAlign : 'center' ,
27
- cursor : 'grab' ,
27
+ cursor : 'grab'
28
28
} ,
29
29
lightThemeFontColor : {
30
- color : '#defaf8' ,
30
+ color : '#defaf8'
31
31
} ,
32
32
darkThemeFontColor : {
33
- color : '#8F8F8F' ,
34
- } ,
33
+ color : '#8F8F8F'
34
+ }
35
35
} ) ;
36
36
37
37
/**
@@ -66,11 +66,11 @@ const HTMLItem: React.FC<{
66
66
instanceType : 'HTML Element' ,
67
67
name,
68
68
icon,
69
- instanceTypeId : id ,
69
+ instanceTypeId : id
70
70
} ,
71
71
collect : ( monitor : any ) => ( {
72
- isDragging : ! ! monitor . isDragging ( ) ,
73
- } ) ,
72
+ isDragging : ! ! monitor . isDragging ( )
73
+ } )
74
74
} ) ;
75
75
76
76
const closeModal = ( ) => setModal ( null ) ;
@@ -84,7 +84,7 @@ const HTMLItem: React.FC<{
84
84
style = { {
85
85
border : '1px solid #C6C6C6' ,
86
86
marginBottom : '2%' ,
87
- marginTop : '5%' ,
87
+ marginTop : '5%'
88
88
} }
89
89
>
90
90
< ListItemText
@@ -100,12 +100,12 @@ const HTMLItem: React.FC<{
100
100
style = { {
101
101
border : '1px solid #C6C6C6' ,
102
102
marginBottom : '2%' ,
103
- marginTop : '5%' ,
103
+ marginTop : '5%'
104
104
} }
105
105
>
106
106
< ListItemText
107
107
primary = { 'No, do not delete element' }
108
- style = { { textAlign : 'center' , color : 'white' } }
108
+ style = { { textAlign : 'center' , color : 'white' } }
109
109
onClick = { closeModal }
110
110
/>
111
111
</ ListItem >
@@ -121,8 +121,8 @@ const HTMLItem: React.FC<{
121
121
primBtnAction : null ,
122
122
secBtnAction : null ,
123
123
secBtnLabel : null ,
124
- open : true ,
125
- } ) ,
124
+ open : true
125
+ } )
126
126
) ;
127
127
} ;
128
128
@@ -134,8 +134,8 @@ const HTMLItem: React.FC<{
134
134
typeId : id ,
135
135
childId : null ,
136
136
contextParam : {
137
- allContext : [ ] ,
138
- } ,
137
+ allContext : [ ]
138
+ }
139
139
} ;
140
140
141
141
dispatch ( addChild ( childData ) ) ;
@@ -154,8 +154,8 @@ const HTMLItem: React.FC<{
154
154
ref = { drag }
155
155
style = { {
156
156
backgroundColor : 'rgb(30, 32, 36)' ,
157
- borderColor : 'rgb(100, 100, 115 )' ,
158
- width : '100%' ,
157
+ borderColor : 'rgb(30, 32, 36 )' ,
158
+ width : '100%'
159
159
} }
160
160
className = { `${ classes . HTMLPanelItem } ${ classes . darkThemeFontColor } ` }
161
161
id = "HTMLItem"
0 commit comments