Make eslint happy
This commit is contained in:
parent
ca92101c72
commit
92aa953934
1 changed files with 0 additions and 16 deletions
|
@ -17,8 +17,6 @@ limitations under the License.
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import "context-filter-polyfill";
|
import "context-filter-polyfill";
|
||||||
|
|
||||||
import UIStore from "../../stores/UIStore";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
backgroundImage?: CanvasImageSource;
|
backgroundImage?: CanvasImageSource;
|
||||||
}
|
}
|
||||||
|
@ -26,8 +24,6 @@ interface IProps {
|
||||||
interface IState {
|
interface IState {
|
||||||
// Left Panel image
|
// Left Panel image
|
||||||
lpImage?: string;
|
lpImage?: string;
|
||||||
// Left-left panel image
|
|
||||||
llpImage?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class BackdropPanel extends React.PureComponent<IProps, IState> {
|
export default class BackdropPanel extends React.PureComponent<IProps, IState> {
|
||||||
|
@ -39,26 +35,14 @@ export default class BackdropPanel extends React.PureComponent<IProps, IState> {
|
||||||
this.onResize();
|
this.onResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
public componentWillUnmount() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public componentDidUpdate(prevProps: IProps) {
|
public componentDidUpdate(prevProps: IProps) {
|
||||||
if (prevProps.backgroundImage !== this.props.backgroundImage) {
|
if (prevProps.backgroundImage !== this.props.backgroundImage) {
|
||||||
this.setState({});
|
|
||||||
this.onResize();
|
this.onResize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onResize = () => {
|
private onResize = () => {
|
||||||
if (this.props.backgroundImage) {
|
if (this.props.backgroundImage) {
|
||||||
const groupFilterPanelDimensions = UIStore.instance.getElementDimensions("GroupFilterPanelContainer");
|
|
||||||
const spacePanelDimensions = UIStore.instance.getElementDimensions("SpacePanel");
|
|
||||||
const roomListDimensions = UIStore.instance.getElementDimensions("LeftPanel");
|
|
||||||
this.sizes = {
|
|
||||||
leftLeftPanelWidth: spacePanelDimensions?.width ?? groupFilterPanelDimensions?.width ?? 0,
|
|
||||||
leftPanelWidth: roomListDimensions?.width ?? 0,
|
|
||||||
height: UIStore.instance.windowHeight,
|
|
||||||
};
|
|
||||||
this.refreshBackdropImage();
|
this.refreshBackdropImage();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue