From 97efade9b93f8e678762e7a31aac4cca85c6ee1c Mon Sep 17 00:00:00 2001 From: Daniil Suvorov Date: Thu, 5 Dec 2024 17:30:01 +0300 Subject: [PATCH] Update packages/icons-scripts/scripts/output/react.js Co-authored-by: Inomdzhon Mirdzhamolov --- packages/icons-scripts/scripts/output/react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icons-scripts/scripts/output/react.js b/packages/icons-scripts/scripts/output/react.js index 15d64438..a122be14 100644 --- a/packages/icons-scripts/scripts/output/react.js +++ b/packages/icons-scripts/scripts/output/react.js @@ -48,7 +48,7 @@ export const ${componentName}: React.FC<${componentName}Props> & ${typeAssigns} viewBox={viewBox} width={width} height={height} - style={{color: fill, ...style}} + style={fill ? { color: fill, ...style } : style} ${attrs ? `{...${JSON.stringify(attrs)}}` : ''} {...restProps} >