fix: react 19 error
This commit is contained in:
parent
fbf9d06d84
commit
892a686462
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue