Skip to content

Commit eca4bc6

Browse files
committed
deleted deleteIcon from cratepanel and reverted package.json to add back babelpolyfill. changed vite config file to delete the visualizer plugin
1 parent da27a82 commit eca4bc6

File tree

4 files changed

+17232
-24899
lines changed

4 files changed

+17232
-24899
lines changed

app/src/components/left/CreatePanel.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import FormGroup from '@mui/material/FormGroup';
1010
import Grid from '@mui/material/Grid';
1111
import Switch from '@mui/material/Switch';
1212
import TextField from '@mui/material/TextField';
13-
import DeleteIcon from '@mui/icons-material/Delete';
1413
import MUIItem from './MUIItem';
1514
import HTMLItem from './HTMLItem';
1615
import HTMLPanel from './HTMLPanel';
@@ -206,7 +205,7 @@ const CreatePanel = (props): JSX.Element => {
206205
{name}
207206
</Button>
208207
</Box>
209-
<Grid container spacing={2}>
208+
<Grid container spacing={2} key={name + idx}>
210209
{typeArray}
211210
</Grid>
212211
</>
@@ -223,15 +222,17 @@ const CreatePanel = (props): JSX.Element => {
223222
<Button component="label">{'Custom Elements'}</Button>
224223
<HTMLPanel isThemeLight={props.isThemeLight} />
225224
{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+
)
235236
])}
236237
<FormGroup>
237238
<Box display="flex" alignItems="center" justifyContent="center">

0 commit comments

Comments
 (0)