From 75f9450f854407a33bfe38d3556b6bfa622c7073 Mon Sep 17 00:00:00 2001 From: Ryan Conceicao Date: Wed, 3 Apr 2024 13:40:48 +0800 Subject: [PATCH] fix: convert to solid component (#298) --- src/utils/icons.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/icons.ts b/src/utils/icons.ts index e976d01b..3b88d96b 100644 --- a/src/utils/icons.ts +++ b/src/utils/icons.ts @@ -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.replace(//, '')} ) }`