From fe1d0e66fed3701074d742eb880e5385676fc1ab Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Thu, 19 Aug 2021 07:14:28 +0200 Subject: [PATCH] Remove useless constructor --- src/components/structures/BackdropPanel.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/structures/BackdropPanel.tsx b/src/components/structures/BackdropPanel.tsx index fe18851978..9a37182222 100644 --- a/src/components/structures/BackdropPanel.tsx +++ b/src/components/structures/BackdropPanel.tsx @@ -41,10 +41,7 @@ export default class BackdropPanel extends React.PureComponent { }; private style = getComputedStyle(document.documentElement); - constructor(props: IProps) { - super(props); - this.state = {}; - } + public state = {}; public componentDidMount() { UIStore.instance.on("SpacePanel", this.onResize);