mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
Reverse children order
This commit is contained in:
@@ -24,7 +24,7 @@ export default (iconName, iconNode) => {
|
||||
class: `lucide lucide-${toKebabCase(iconName)}`,
|
||||
...rest,
|
||||
},
|
||||
[...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...toChildArray(children)],
|
||||
[...toChildArray(children), ...iconNode.map(([tag, attrs]) => h(tag, attrs))],
|
||||
);
|
||||
|
||||
Component.displayName = `${iconName}`;
|
||||
|
||||
@@ -27,7 +27,7 @@ export default (iconName, iconNode) => {
|
||||
className: `lucide lucide-${toKebabCase(iconName)}`,
|
||||
...rest,
|
||||
},
|
||||
[...iconNode.map(([tag, attrs]) => createElement(tag, attrs)), ...(children || [])],
|
||||
[...(children || []), ...iconNode.map(([tag, attrs]) => createElement(tag, attrs))],
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user