fix: react 19 error

This commit is contained in:
Felix Roos 2025-01-29 14:52:44 +01:00
parent fbf9d06d84
commit 892a686462
No known key found for this signature in database

View File

@ -13,8 +13,9 @@ export default function Claviature({ options, onClick, onMouseDown, onMouseUp, o
<svg {...svg.attributes}>
{svg.children.map((el, i) => {
const TagName = el.name;
const { key, ...attributes } = el.attributes;
return (
<TagName key={`${el.name}-${i}`} {...el.attributes}>
<TagName key={`${el.name}-${i}`} {...attributes}>
{el.value}
</TagName>
);