Skip to content

Commit 9e3c72d

Browse files
authored
Fix importing inlinesvg esm issue (#2655)
1 parent 669b948 commit 9e3c72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const CustomSvgIcon: FunctionComponent<CustomSvgIconProps> = ({
5656
if (typeof src !== "string") return null;
5757

5858
// eslint-disable-next-line @typescript-eslint/no-explicit-any
59-
const SVGComponent = SVG as React.FC<any>;
59+
const SVGComponent = (SVG.default || SVG) as React.FC<any>;
6060

6161
const PlaceHolder = <div className={className} id={id}></div>;
6262

0 commit comments

Comments
 (0)