Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yapyuyou committed Apr 16, 2024
1 parent 705e76c commit 542f8f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/renderer/SvgRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum DisplayResult {
DIGEST_ERROR = 3,
}

export const SvgRenderer = React.forwardRef<HTMLIFrameElement, SvgRendererProps>(
const SvgRenderer = React.forwardRef<HTMLIFrameElement, SvgRendererProps>(
({ document, svgData, style, className, sandbox = "allow-same-origin", onConnected, forceV2 = false }, ref) => {
const [buffer, setBuffer] = useState<ArrayBuffer>();
const [svgFetchedData, setFetchedSvgData] = useState<string>("");
Expand Down Expand Up @@ -177,3 +177,7 @@ export const SvgRenderer = React.forwardRef<HTMLIFrameElement, SvgRendererProps>
}
}
);

SvgRenderer.displayName = "SvgRendererComponent";

export { SvgRenderer };

0 comments on commit 542f8f0

Please sign in to comment.