mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
use implicit return in react package (#2325)
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
co-authored by
Eric Fennis
parent
1ab3826607
commit
03eb86287a
@@ -35,8 +35,8 @@ const Icon = forwardRef<SVGSVGElement, IconComponentProps>(
|
||||
...rest
|
||||
},
|
||||
ref,
|
||||
) => {
|
||||
return createElement(
|
||||
) =>
|
||||
createElement(
|
||||
'svg',
|
||||
{
|
||||
ref,
|
||||
@@ -53,8 +53,7 @@ const Icon = forwardRef<SVGSVGElement, IconComponentProps>(
|
||||
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
||||
...(Array.isArray(children) ? children : [children]),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
export default Icon;
|
||||
|
||||
Reference in New Issue
Block a user