Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Commit 47f66c2

Browse files
committed
fix: warnings fixed
1 parent 14cf90e commit 47f66c2

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

ui/src/logic/game/game.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Engine, World, Bodies, Query, Vector, Composite, Body } from "matter-js";
1+
import { Engine, World, Bodies, Vector, Composite, Body } from "matter-js";
22
import { raycast } from "../../core/raycast";
33

44
const frictionAir = .3;
@@ -102,7 +102,7 @@ export class Game {
102102
};
103103

104104
public next(userInput?: Partial<GameInput>) {
105-
const { engine, settings: { simulation: { delta } }, mapping } = this;
105+
const { engine, settings: { simulation: { delta } } } = this;
106106
this.applyInput(userInput);
107107

108108
Engine.update(engine, delta);

ui/src/views/Analyze.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type TAnalyzeProps = {
55

66
};
77

8-
export const Analyze: React.FC<TAnalyzeProps> = ({ }) => {
8+
export const Analyze: React.FC<TAnalyzeProps> = () => {
99

1010
return <>
1111
<Card title="Analyze"></Card>

ui/src/views/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type THistoryProps = {
55

66
};
77

8-
export const History: React.FC<THistoryProps> = ({ }) => {
8+
export const History: React.FC<THistoryProps> = () => {
99

1010
return <>
1111
<Card title="History"></Card>

ui/src/views/MainPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type TMainPageProps = {
99

1010
};
1111

12-
export const MainPage: React.FC<TMainPageProps> = ({ }) => {
12+
export const MainPage: React.FC<TMainPageProps> = () => {
1313

1414
return <>
1515
<Card>

ui/src/views/Runner.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Renderer: React.FC<TRendererProps> = ({ height, width }) => {
5252
const ref = useRef<HTMLDivElement>(undefined as any);
5353
const debug = false;
5454

55-
useEffect(() => {
55+
const init = () => {
5656
(async () => {
5757
if (!ref.current)
5858
return;
@@ -132,7 +132,8 @@ const Renderer: React.FC<TRendererProps> = ({ height, width }) => {
132132
requestAnimationFrame(rafLoop);
133133

134134
})();
135-
}, []);
135+
};
136+
useEffect(init, []);
136137

137138
return <>
138139
<div style={{ justifyContent: "center", display: "flex" }}>
@@ -141,7 +142,7 @@ const Renderer: React.FC<TRendererProps> = ({ height, width }) => {
141142
</>;
142143
};
143144

144-
export const RunnerPage: React.FC<TRunnerProps> = ({ }) => {
145+
export const RunnerPage: React.FC<TRunnerProps> = () => {
145146

146147
return <>
147148
<Card title="Run">

ui/src/views/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type TSettingsProps = {
66

77
};
88

9-
export const Settings: React.FC<TSettingsProps> = ({ }) => {
9+
export const Settings: React.FC<TSettingsProps> = () => {
1010

1111
return <>
1212
<Card title="Settings" style={{ overflowY: "auto", height: "100%" }}>

0 commit comments

Comments
 (0)