Skip to content

Commit

Permalink
fix: remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkpatchaa committed Jan 6, 2025
1 parent 00b00a7 commit 655b579
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions generator/generate-svg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ const generateIconWithWeight = (icon, weight) => {
}).then((tsCode) => {
tsCode = tsCode
.replace(/import type .*;\n/g, '')
.replace(
'const',
weight === 'duotone'
? "import type { IconProps } from '../lib'\n\nconst"
: "import type { IconProps } from '../lib'\n\nconst"
)
.replace('const', "import type { IconProps } from '../lib'\n\nconst")
.replace(
'SvgProps',
weight === 'duotone'
Expand Down

0 comments on commit 655b579

Please sign in to comment.