Add production mode to docker
This commit is contained in:
parent
32c3debad4
commit
4338b11939
4 changed files with 27 additions and 14 deletions
|
@ -1,6 +1,5 @@
|
|||
'use client'
|
||||
import { useState, useEffect, useRef } from 'react'
|
||||
import Image from 'next/image'
|
||||
import { Socket, io } from "socket.io-client"
|
||||
import { getRandomQuestion, playModes } from "./questions"
|
||||
import { IconCrown, IconPhotoUp, IconCamera } from "@tabler/icons-react"
|
||||
|
@ -265,7 +264,7 @@ export default function GameRoom({ params }: roomProps) {
|
|||
<div className="avatar indicator">
|
||||
{player.role == "owner" && <IconCrown className="indicator-item" />}
|
||||
<div className="w-16 rounded">
|
||||
<Image alt="" src={player.avatar} />
|
||||
<img src={player.avatar} />
|
||||
</div>
|
||||
</div>
|
||||
<p className="flex flex-row">{player.name}</p>
|
||||
|
@ -339,7 +338,7 @@ export default function GameRoom({ params }: roomProps) {
|
|||
}
|
||||
{ questionReply.photo != undefined &&
|
||||
<div>
|
||||
<Image alt="" src={questionReply.photo} />
|
||||
<img src={questionReply.photo} />
|
||||
<span className="text-zinc-500">Photo received from {possibleChoice.sort((a,b) => b.nbrVotes - a.nbrVotes)[0].name}...</span>
|
||||
</div>
|
||||
|
||||
|
@ -355,7 +354,7 @@ export default function GameRoom({ params }: roomProps) {
|
|||
}
|
||||
{ questionReply.photo != undefined &&
|
||||
<div>
|
||||
<Image alt="" src={questionReply.photo} />
|
||||
<img src={questionReply.photo} />
|
||||
<span className="text-zinc-500">Photo received from {possibleChoice.sort((a,b) => b.nbrVotes - a.nbrVotes)[0].name}...</span>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue