Skip to content

Commit

Permalink
fix: load inlinesvg with esm (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
MosheZemah authored Dec 16, 2024
1 parent 9e3c72d commit 1ef3ab3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const CustomSvgIcon: FunctionComponent<CustomSvgIconProps> = ({
if (typeof src !== "string") return null;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const SVGComponent = (SVG.default || SVG) as React.FC<any>;
const SVGComponent = (SVG.default || SVG) as React.FC<any>; // fix esm issue

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

Expand Down

0 comments on commit 1ef3ab3

Please sign in to comment.