Skip to content

Commit

Permalink
fix: convert to solid component (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoid authored Apr 3, 2024
1 parent ea199cf commit 75f9450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export default {

export function SvgToSolid(svg: string, name: string, snippet: boolean) {
let code = `
export function ${name}(props: JSX.IntrinsicElements['svg'], key: string) {
export function ${name}(props: JSX.IntrinsicElements['svg']) {
return (
${ClearSvg(svg, false).replace(/<svg (.*?)>/, '<svg $1 {...props} key={key}>')}
${svg.replace(/<svg (.*?)>/, '<svg $1 {...props}>')}
)
}`

Expand Down

0 comments on commit 75f9450

Please sign in to comment.