Skip to content

Commit bc9e25e

Browse files
committed
update static rendering script with new createIcon format
1 parent e652536 commit bc9e25e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/react-icons/scripts/writeIcons.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ function generateStaticSVG(iconName, icon) {
7979
// Create icon component using createIcon
8080
const IconComponent = createIcon({
8181
name: jsName,
82-
width: icon.width,
83-
height: icon.height,
84-
svgPath: icon.svgPathData,
85-
xOffset: icon.xOffset || 0,
86-
yOffset: icon.yOffset || 0,
87-
svgClassName: icon.svgClassName
82+
icon
8883
});
8984

9085
// Render the component to string

0 commit comments

Comments
 (0)