From d907a564833d128193f1d472057ef21aedbf1f9a Mon Sep 17 00:00:00 2001 From: DTieman Date: Sat, 20 Apr 2024 23:44:23 +0200 Subject: [PATCH] Custom names and time in chat --- src/layout/components/Game.tsx | 17 +++++++++-------- src/layout/pages/MainLobby.tsx | 11 +++++++++++ src/layout/pages/Room.tsx | 25 ++++++++++++++++++------- src/styles/layout/pages/mainlobby.scss | 8 +++++++- 4 files changed, 45 insertions(+), 16 deletions(-) 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, }