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

Commit

Permalink
fix: warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciator committed Nov 25, 2020
1 parent 14cf90e commit 47f66c2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ui/src/logic/game/game.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Engine, World, Bodies, Query, Vector, Composite, Body } from "matter-js";
import { Engine, World, Bodies, Vector, Composite, Body } from "matter-js";
import { raycast } from "../../core/raycast";

const frictionAir = .3;
Expand Down Expand Up @@ -102,7 +102,7 @@ export class Game {
};

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

Engine.update(engine, delta);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/Analyze.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type TAnalyzeProps = {

};

export const Analyze: React.FC<TAnalyzeProps> = ({ }) => {
export const Analyze: React.FC<TAnalyzeProps> = () => {

return <>
<Card title="Analyze"></Card>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type THistoryProps = {

};

export const History: React.FC<THistoryProps> = ({ }) => {
export const History: React.FC<THistoryProps> = () => {

return <>
<Card title="History"></Card>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type TMainPageProps = {

};

export const MainPage: React.FC<TMainPageProps> = ({ }) => {
export const MainPage: React.FC<TMainPageProps> = () => {

return <>
<Card>
Expand Down
7 changes: 4 additions & 3 deletions ui/src/views/Runner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Renderer: React.FC<TRendererProps> = ({ height, width }) => {
const ref = useRef<HTMLDivElement>(undefined as any);
const debug = false;

useEffect(() => {
const init = () => {
(async () => {
if (!ref.current)
return;
Expand Down Expand Up @@ -132,7 +132,8 @@ const Renderer: React.FC<TRendererProps> = ({ height, width }) => {
requestAnimationFrame(rafLoop);

})();
}, []);
};
useEffect(init, []);

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

export const RunnerPage: React.FC<TRunnerProps> = ({ }) => {
export const RunnerPage: React.FC<TRunnerProps> = () => {

return <>
<Card title="Run">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type TSettingsProps = {

};

export const Settings: React.FC<TSettingsProps> = ({ }) => {
export const Settings: React.FC<TSettingsProps> = () => {

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

0 comments on commit 47f66c2

Please sign in to comment.