Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Sep 12, 2024
1 parent 42abd98 commit 2f4f0ce
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/pages/game.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { LoadDeck } from "@/components/molecules/LoadDeck";
import { GameBoard } from "@/components/organisms/GameBoard";
import {
GRIDS,
GRIDS_PERSONAL_LENGTH,
} from "@/components/organisms/GameBoard/constants";
import { GRIDS } from "@/components/organisms/GameBoard/constants";
import { GameCard, GameState, PlayersState } from "@/types/card";
import { useRouter } from "next/router";
import { useMemo, useState } from "react";
Expand All @@ -13,9 +10,8 @@ const initGameState: GameCard[][] = Array.from({ length: 36 }, () => []);
export default function GamePage() {
const { query } = useRouter();
const name = (query?.name as string | undefined) ?? "p1";
const isP2 = name === "p2";

const [gridItems, setGridItems] = useState<GameState>(initGameState);
// const [gridItems, setGridItems] = useState<GameState>(initGameState);
const [players, setPlayers] = useState<PlayersState>({
p1: initGameState,
p2: initGameState,
Expand Down Expand Up @@ -62,8 +58,6 @@ export default function GamePage() {
</div>
);

console.log({ players });

return <GameBoard gridItems={state} setGridItems={setPlayer(name)} />;
}

Expand Down

0 comments on commit 2f4f0ce

Please sign in to comment.