use implicit return in react package (#2325)

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
Viktor Andersson
2025-05-02 09:49:43 +02:00
committed by GitHub
co-authored by Eric Fennis
parent 1ab3826607
commit 03eb86287a
+3 -4
View File
@@ -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;