diff --git a/components/GameResult/GameResult.tsx b/components/GameResult/GameResult.tsx index 7d8e9fc..586c327 100644 --- a/components/GameResult/GameResult.tsx +++ b/components/GameResult/GameResult.tsx @@ -14,20 +14,6 @@ import { TeamMemberBasic } from 'components/shared/ui/TeamMemberBasic'; import { OIcon, XIcon } from 'components/shared/ui/XOIcons'; export const GameResult = (props: IGameResultProps) => { const { result, player1, player2, gameType } = props; - // const player1 = { - // playerName: '0xh20...7260', - // playerImg: playerImg, - // showWinText: result === 'win', - // gameType: 'tic-tac-toe', - // icon: gameType === 'tic-tac-toe' ? : , - // }; - // const player2 = { - // playerName: '0xh07...6035', - // playerImg: playerImg2, - // showWinText: result === 'lose', - // gameType: 'tic-tac-toe', - // icon: gameType === 'tic-tac-toe' ? : , - // }; return (
{ const [finishedGameState, setFinishedGameState] = useState(null); - +const router = useRouter(); +const dynamicGameType = router.query.gameType as TGameType; return (
{finishedGameState && (