fix: adds keys to mapped components

This commit is contained in:
Mark Mankarious
2023-03-25 00:56:20 +00:00
parent b86c76ed05
commit 611381934f

View File

@@ -42,7 +42,7 @@ export const Icons = ({ icons, onClose }: Props) => {
<Sidebar header={<Header title="Icons" onClose={onClose} />}>
<Grid container spacing={4}>
{categorisedIcons.map((cat) => (
<Grid item xs={12} key={cat.name}>
<Grid item xs={12} key={`icon-category-${cat.name}`}>
<IconCategory {...cat} />
</Grid>
))}