From 1ef3ab36a7bfe7bc6b0bc2ce15756a75276f24b5 Mon Sep 17 00:00:00 2001 From: Moshe Zemah Date: Mon, 16 Dec 2024 09:40:14 +0200 Subject: [PATCH] fix: load inlinesvg with esm (#2656) --- .../core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx b/packages/core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx index 8a103b7cda..08ae767730 100644 --- a/packages/core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx +++ b/packages/core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx @@ -56,7 +56,7 @@ const CustomSvgIcon: FunctionComponent = ({ if (typeof src !== "string") return null; // eslint-disable-next-line @typescript-eslint/no-explicit-any - const SVGComponent = (SVG.default || SVG) as React.FC; + const SVGComponent = (SVG.default || SVG) as React.FC; // fix esm issue const PlaceHolder =
;