Remove useless ref

This commit is contained in:
Siklos 2022-08-05 17:50:14 +02:00
parent 0494bebec7
commit 2dcdf769f1

View file

@ -18,7 +18,6 @@ interface ISVGState {
export class SVG extends React.PureComponent<ISVGProps> {
public state: ISVGState;
public svg: React.RefObject<SVGSVGElement>;
constructor(props: ISVGProps) {
super(props);
@ -29,7 +28,6 @@ export class SVG extends React.PureComponent<ISVGProps> {
} as Value,
tool: TOOL_PAN
};
this.svg = React.createRef<SVGSVGElement>();
}
render() {
@ -63,7 +61,7 @@ export class SVG extends React.PureComponent<ISVGProps> {
height: 120
}}
>
<svg ref={this.svg} {...properties}>
<svg {...properties}>
{ children }
<Selector selected={this.props.selected} />
</svg>