feat: chat v lobby
This commit is contained in:
1 parent
9a3987a2fa
commit
6beb15afe3
10 files changed
+130
-2
No files matched your search
@@ -9,6 +9,7 @@ import { TetrisSession, WIDTH, HEIGHT, pieceCells, Piece } from "../games/tetris
|
||||
import { useGameIcon } from "../games/themeIcons";
|
||||
import { useTouchDevice } from "../hooks/useTouchDevice";
|
||||
import TouchButton from "./TouchButton";
|
||||
import LobbyChat from "./LobbyChat";
|
||||
import "./TetrisGame.scss";
|
||||
|
||||
// Typy musí odpovídat server/src/tetrisGame.ts (stav chodí přes websocket, ne přes OpenAPI)
|
||||
@@ -554,6 +555,7 @@ export default function TetrisGame() {
|
||||
{state && state.players.length < state.minPlayers &&
|
||||
<p className="text-muted">Čeká se na další hráče… Pro hru o samotě použijte Trénink.</p>}
|
||||
{renderSettings()}
|
||||
{isPlayer && <LobbyChat game="tetris" />}
|
||||
</>
|
||||
);
|
||||
case 'countdown':
|
||||
|
||||
Reference in new issue
Block a user