From 67d326a558afc37c4ee4b844c6ee218a5ffcf261 Mon Sep 17 00:00:00 2001 From: Rhon Joe Date: Mon, 24 Jul 2023 10:31:56 +0800 Subject: [PATCH] fix(web): fix svg unrecognized props (#631) --- web/app/components/base/icons/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/components/base/icons/utils.ts b/web/app/components/base/icons/utils.ts index cbb951dfa7..0ff2b6cc3c 100644 --- a/web/app/components/base/icons/utils.ts +++ b/web/app/components/base/icons/utils.ts @@ -15,6 +15,7 @@ export type Attrs = { export function normalizeAttrs(attrs: Attrs = {}): Attrs { return Object.keys(attrs).reduce((acc: Attrs, key) => { const val = attrs[key] + key = key.replace(/([-]\w)/g, (g: string) => g[1].toUpperCase()) switch (key) { case 'class': acc.className = val