rename game wrapper, add initial socket events

This commit is contained in:
Nathaniel Tampus
2023-03-05 09:41:34 +08:00
parent eb40d73f74
commit 01ebc4a138
2 changed files with 79 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import Game from "@/components/game/Game";
import GameWrapper from "@/components/game/GameWrapper";
import { getGame } from "@/lib/game";
import { notFound } from "next/navigation";
@@ -8,5 +8,5 @@ export default async function GamePage({ params }: { params: { code: string } })
notFound();
}
return <Game initialLobby={game} />;
return <GameWrapper initialLobby={game} />;
}