diff --git a/src/containers/ViewerPanel/index.tsx b/src/containers/ViewerPanel/index.tsx index 1056f2cf..e38e7f9b 100644 --- a/src/containers/ViewerPanel/index.tsx +++ b/src/containers/ViewerPanel/index.tsx @@ -123,11 +123,6 @@ interface ViewerPanelState { height: number; width: number; movieURL: string; - embedDisplayBreakpoints: { - belowControlsHeight: boolean; - belowControlsWidth: boolean; - belowScaleBarWidth: boolean; - }; } class ViewerPanel extends React.Component { @@ -153,11 +148,6 @@ class ViewerPanel extends React.Component { height: 0, width: 0, movieURL: "", - embedDisplayBreakpoints: { - belowControlsHeight: false, - belowControlsWidth: false, - belowScaleBarWidth: false, - }, }; } @@ -493,7 +483,9 @@ class ViewerPanel extends React.Component { const { height, width } = this.state; const belowControlsHeight = height <= CONTROLS_MIN_HEIGHT; const belowControlsWidth = width <= CONTROLS_MIN_WIDTH; - const showScaleBar = width > SCALE_BAR_MIN_WIDTH && (!belowControlsWidth || !belowControlsHeight); + const showScaleBar = + width > SCALE_BAR_MIN_WIDTH && + (!belowControlsWidth || !belowControlsHeight); if (belowControlsHeight && belowControlsWidth) { return {