From 2dcdf769f1dec18da1f3e2d2a1c14777ca874cfe Mon Sep 17 00:00:00 2001 From: Siklos Date: Fri, 5 Aug 2022 17:50:14 +0200 Subject: [PATCH] Remove useless ref --- src/Components/SVG/SVG.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Components/SVG/SVG.tsx b/src/Components/SVG/SVG.tsx index c11e39b..13d6854 100644 --- a/src/Components/SVG/SVG.tsx +++ b/src/Components/SVG/SVG.tsx @@ -18,7 +18,6 @@ interface ISVGState { export class SVG extends React.PureComponent { public state: ISVGState; - public svg: React.RefObject; constructor(props: ISVGProps) { super(props); @@ -29,7 +28,6 @@ export class SVG extends React.PureComponent { } as Value, tool: TOOL_PAN }; - this.svg = React.createRef(); } render() { @@ -63,7 +61,7 @@ export class SVG extends React.PureComponent { height: 120 }} > - + { children }