From a059a3d710094ed8752e0e25800dc62cbdfd4917 Mon Sep 17 00:00:00 2001 From: Siklos Date: Fri, 5 Aug 2022 19:55:39 +0200 Subject: [PATCH] Format missing files --- src/Components/Properties/Properties.tsx | 2 +- src/Components/SVG/SVG.tsx | 6 +----- src/Editor.tsx | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Components/Properties/Properties.tsx b/src/Components/Properties/Properties.tsx index f7979a9..0d30d3d 100644 --- a/src/Components/Properties/Properties.tsx +++ b/src/Components/Properties/Properties.tsx @@ -7,7 +7,7 @@ interface IPropertiesProps { } export class Properties extends React.PureComponent { - public render() { + public render(): JSX.Element { if (this.props.properties === undefined) { return
; } diff --git a/src/Components/SVG/SVG.tsx b/src/Components/SVG/SVG.tsx index 11ec2b9..9c81f00 100644 --- a/src/Components/SVG/SVG.tsx +++ b/src/Components/SVG/SVG.tsx @@ -14,11 +14,7 @@ interface ISVGProps { export class SVG extends React.PureComponent { public static ID = 'svg'; - constructor(props: ISVGProps) { - super(props); - } - - render() { + render(): JSX.Element { const xmlns = ''; const properties = { diff --git a/src/Editor.tsx b/src/Editor.tsx index 3afecc6..29b78f2 100644 --- a/src/Editor.tsx +++ b/src/Editor.tsx @@ -8,7 +8,6 @@ import { SVG } from './Components/SVG/SVG'; import { History } from './Components/History/History'; import { ContainerModel, IContainerModel } from './Interfaces/ContainerModel'; import { findContainerById, MakeIterator } from './utils/itertools'; -import Properties from './Interfaces/Properties'; import { IHistoryState } from './App'; import FloatingButton from './Components/FloatingButton/FloatingButton';