From 8c235efeecf436b34a749f3451ee8a9a273ab8e8 Mon Sep 17 00:00:00 2001 From: Daniil Suvorov Date: Thu, 5 Dec 2024 16:51:33 +0300 Subject: [PATCH 1/2] =?UTF-8?q?fix(icons-scripts):=20fill=20to=20style=20c?= =?UTF-8?q?olor=20=D0=98=D0=BA=D0=BE=D0=BD=D0=BA=D0=B8=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B6=D0=BD=D0=BE=20=D0=B1=D1=8B=D0=BB=D0=BE=20=D0=BA=D1=80?= =?UTF-8?q?=D0=B0=D1=81=D0=B8=D1=82=D1=8C=20=D1=81=20=D0=BF=D0=BE=D0=BC?= =?UTF-8?q?=D0=BE=D1=89=D1=8C=D1=8E=20=D0=B0=D1=82=D1=80=D0=B8=D0=B1=D1=83?= =?UTF-8?q?=D1=82=D0=B0=20`fill`.=20=D0=92=D0=BE=D0=B7=D0=B2=D1=80=D0=B0?= =?UTF-8?q?=D1=89=D0=B0=D0=B5=D0=BC=20=D1=8D=D1=82=D1=83=20=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/icons-scripts/scripts/output/react.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/icons-scripts/scripts/output/react.js b/packages/icons-scripts/scripts/output/react.js index 2d9becfa..15d64438 100644 --- a/packages/icons-scripts/scripts/output/react.js +++ b/packages/icons-scripts/scripts/output/react.js @@ -38,6 +38,8 @@ export const ${componentName}: React.FC<${componentName}Props> & ${typeAssigns} height = ${height}, viewBox = '${viewBox}', children, + style, + fill, ...restProps }: ${componentName}Props) => { return ( @@ -46,6 +48,7 @@ export const ${componentName}: React.FC<${componentName}Props> & ${typeAssigns} viewBox={viewBox} width={width} height={height} + style={{color: fill, ...style}} ${attrs ? `{...${JSON.stringify(attrs)}}` : ''} {...restProps} > From 97efade9b93f8e678762e7a31aac4cca85c6ee1c Mon Sep 17 00:00:00 2001 From: Daniil Suvorov Date: Thu, 5 Dec 2024 17:30:01 +0300 Subject: [PATCH 2/2] 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} >