fixed pbms found during demo

This commit is contained in:
Quentin Roussel
2024-04-26 14:34:36 +02:00
parent edc1c4baa8
commit 4d62a99f80
12 changed files with 153 additions and 29 deletions

View File

@@ -2,9 +2,11 @@ import useGame from "@/hook/useGame"
import { GreenButton, LogoutButton } from "../util/button";
import { useRef } from "react";
import Image from "next/image";
import { useTeamContext } from "@/context/teamContext";
export function WaitingScreen() {
const { name, teamId } = useGame();
const { name, teamId } = useGame();
const { gameSettings } = useTeamContext();
const imageRef = useRef(null);
const SERVER_URL = "https://" + process.env.NEXT_PUBLIC_SOCKET_HOST + ":" + process.env.NEXT_PUBLIC_SOCKET_PORT;
@@ -33,7 +35,7 @@ export function WaitingScreen() {
Equipe : {name}
</div>
<div className='text-2xl text-center'>
Jeu en préparation, veuillez patienter...
{gameSettings?.waitingMessage}
</div>
<div className='text-2xl text-center my-10'>
<p>Uploadez une photo tous les membres de l&apos;équipe sont visibles</p>