File tree Expand file tree Collapse file tree 4 files changed +17232
-24899
lines changed Expand file tree Collapse file tree 4 files changed +17232
-24899
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import FormGroup from '@mui/material/FormGroup';
10
10
import Grid from '@mui/material/Grid' ;
11
11
import Switch from '@mui/material/Switch' ;
12
12
import TextField from '@mui/material/TextField' ;
13
- import DeleteIcon from '@mui/icons-material/Delete' ;
14
13
import MUIItem from './MUIItem' ;
15
14
import HTMLItem from './HTMLItem' ;
16
15
import HTMLPanel from './HTMLPanel' ;
@@ -206,7 +205,7 @@ const CreatePanel = (props): JSX.Element => {
206
205
{ name }
207
206
</ Button >
208
207
</ Box >
209
- < Grid container spacing = { 2 } >
208
+ < Grid container spacing = { 2 } key = { name + idx } >
210
209
{ typeArray }
211
210
</ Grid >
212
211
</ >
@@ -223,15 +222,17 @@ const CreatePanel = (props): JSX.Element => {
223
222
< Button component = "label" > { 'Custom Elements' } </ Button >
224
223
< HTMLPanel isThemeLight = { props . isThemeLight } />
225
224
{ makeMenuCategory ( [
226
- state . HTMLTypes . filter ( ( type ) => type . id > 10000 ) . map ( ( option ) => (
227
- < HTMLItem
228
- name = { option . name }
229
- key = { `custom-${ option . name } ${ option . id } ` }
230
- id = { option . id }
231
- icon = { option . icon }
232
- handleDelete = { handleDelete }
233
- />
234
- ) )
225
+ state . HTMLTypes . filter ( ( type ) => type . id > 10000 ) . map (
226
+ ( option , index ) => (
227
+ < HTMLItem
228
+ name = { option . name }
229
+ key = { `custom-${ option . name } ${ option . id } ${ index } ` }
230
+ id = { option . id }
231
+ icon = { option . icon }
232
+ handleDelete = { handleDelete }
233
+ />
234
+ )
235
+ )
235
236
] ) }
236
237
< FormGroup >
237
238
< Box display = "flex" alignItems = "center" justifyContent = "center" >
You can’t perform that action at this time.
0 commit comments