diff --git a/src/layout/components/Game.tsx b/src/layout/components/Game.tsx index 50bc1c2..cde4e88 100644 --- a/src/layout/components/Game.tsx +++ b/src/layout/components/Game.tsx @@ -2,14 +2,15 @@ import React, {FunctionComponent} from "react"; import Deck from "./Deck"; import Hand from "./Hand"; import {GHButton} from "./Button"; +import {Player} from "../pages/Room"; export interface GameState { - PlayerName: string; + Me: Player; CurrentState: string; Hand: string[]; CurrentCard: string; - CurrentPlayer: string; - Players: string[]; + CurrentPlayer: Player; + Players: Player[]; } interface Props { @@ -38,12 +39,12 @@ const Game: FunctionComponent = ({gameState, handleCardSend, handleDraw, }