Skip to content

Commit

Permalink
Fix build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabau committed Oct 12, 2024
1 parent 084eade commit 60e09d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gabau.github.io/src/components/games/Pong.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState, useContext } from "react";
import React, { useEffect, useState, useContext, SetStateAction } from "react";
import { Stage, Graphics, Text } from "@pixi/react";
import * as PIXI from "pixi.js";
import ThemeContext from "../../context/ThemeContext";
Expand Down Expand Up @@ -36,7 +36,7 @@ const Pong: React.FC = () => {
const [leftScore, setLeftScore] = useState<number>(0);
const [rightScore, setRightScore] = useState<number>(0);

const setBallSpeed = (f: (v: number) => void) => {
const setBallSpeed = (f: SetStateAction<BallSpeedState>) => {
// if it has been set recently
if (recentlySetSpeed) return;
setBallSpeedInner(f);
Expand Down

0 comments on commit 60e09d4

Please sign in to comment.