From 542f8f0f27ea6e969553ab1c4c08122a9cb34467 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 17 Apr 2024 02:11:51 +0800 Subject: [PATCH] fix: lint --- src/components/renderer/SvgRenderer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/renderer/SvgRenderer.tsx b/src/components/renderer/SvgRenderer.tsx index a56f2f8..b71b18b 100644 --- a/src/components/renderer/SvgRenderer.tsx +++ b/src/components/renderer/SvgRenderer.tsx @@ -26,7 +26,7 @@ enum DisplayResult { DIGEST_ERROR = 3, } -export const SvgRenderer = React.forwardRef( +const SvgRenderer = React.forwardRef( ({ document, svgData, style, className, sandbox = "allow-same-origin", onConnected, forceV2 = false }, ref) => { const [buffer, setBuffer] = useState(); const [svgFetchedData, setFetchedSvgData] = useState(""); @@ -177,3 +177,7 @@ export const SvgRenderer = React.forwardRef } } ); + +SvgRenderer.displayName = "SvgRendererComponent"; + +export { SvgRenderer };