Reverse children order

This commit is contained in:
MoltenCoffee
2022-01-24 14:59:23 +01:00
parent 97fdd01470
commit bf7489dd29
2 changed files with 2 additions and 2 deletions
@@ -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))],
),
);