fix: Preact adapter spreading props as children (#1084)

This commit is contained in:
Marvin Hagemeister 2024-05-16 01:24:52 +02:00 committed by GitHub
parent 01e01a7567
commit fce43e1d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -33,9 +33,9 @@ const createPreactComponent = (
stroke: color,
}),
style,
...rest,
},
[...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...toChildArray(children)],
...[rest],
);
Component.displayName = `${iconNamePascal}`;