Skip to content

Commit

Permalink
Fix lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
glughi committed Nov 20, 2024
1 parent 473d70c commit 29c9225
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
4 changes: 3 additions & 1 deletion lib/ReactViews/Map/MapNavigation/registerMapNavigations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import {
ZOOM_CONTROL_ID
} from "./Items";
import { TogglePickInfoController } from "./Items/TogglePickInfoTool";
import KeyboardMode, { KEYBOARD_MODE_ID } from "../../Tools/KeyboardMode/KeyboardMode";
import KeyboardMode, {
KEYBOARD_MODE_ID
} from "../../Tools/KeyboardMode/KeyboardMode";

export const CLOSE_TOOL_ID = "close-tool";

Expand Down
6 changes: 1 addition & 5 deletions lib/ReactViews/Tools/KeyboardMode/KeyboardMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import ViewState from "../../../ReactViewModels/ViewState";
import PositionRightOfWorkbench from "../../Workbench/PositionRightOfWorkbench";
import MovementControls from "./MovementControls";


type KeyboardModeProps = {
viewState: ViewState;
};
Expand All @@ -24,9 +23,7 @@ const KeyboardMode: React.FC<KeyboardModeProps> = observer((props) => {

return (
<ControlsContainer viewState={viewState}>
<MovementControls
cesium={cesium}
/>
<MovementControls cesium={cesium} />
</ControlsContainer>
);
});
Expand All @@ -38,5 +35,4 @@ const ControlsContainer = styled(PositionRightOfWorkbench)`
bottom: 300px;
`;


export default KeyboardMode;
6 changes: 2 additions & 4 deletions lib/ReactViews/Tools/KeyboardMode/MovementControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const MovementControls: React.FC<MovementControlsProps> = (props) => {
const toggleMaximized = () => setIsMaximized(!isMaximized);

useEffect(() => {
const movementsController = new MovementsController(
props.cesium
);
const movementsController = new MovementsController(props.cesium);
const detach = movementsController.activate();
return detach;
/* eslint-disable-next-line react-hooks/exhaustive-deps */
Expand Down Expand Up @@ -70,7 +68,7 @@ const MinimizeMaximizeButton = styled(Button).attrs(({ maximized }) => ({
glyph={maximized ? Icon.GLYPHS.minimize : Icon.GLYPHS.maximize}
/>
)
})) <{ maximized: boolean }>`
}))<{ maximized: boolean }>`
padding: 0;
margin: 0;
border: 0;
Expand Down
8 changes: 3 additions & 5 deletions lib/ReactViews/Tools/KeyboardMode/MovementsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export default class MovementsController {
// Current active movements
activeMovements: Set<Movement> = new Set();

constructor(
readonly cesium: Cesium,
) {
constructor(readonly cesium: Cesium) {
makeObservable(this);
}

Expand Down Expand Up @@ -139,8 +137,8 @@ export default class MovementsController {
}

/**
* Animate on each clock tick
*/
* Animate on each clock tick
*/
startAnimating() {
const stopAnimating =
this.cesium.cesiumWidget.clock.onTick.addEventListener(
Expand Down

0 comments on commit 29c9225

Please sign in to comment.