Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -9,6 +9,7 @@ import { Ready } from '../components/room/Ready'; | ... | @@ -9,6 +9,7 @@ import { Ready } from '../components/room/Ready'; |
9 | import { RoomInfo } from '../components/room/RoomInfo'; | 9 | import { RoomInfo } from '../components/room/RoomInfo'; |
10 | import { RoomData, UpdateRoomUser } from '../components/room/types'; | 10 | import { RoomData, UpdateRoomUser } from '../components/room/types'; |
11 | import { UserInfo } from '../components/room/UserInfo'; | 11 | import { UserInfo } from '../components/room/UserInfo'; |
12 | +import { UserRole } from '../components/room/UserRole'; | ||
12 | import { UserStatus } from '../components/room/UserStatus'; | 13 | import { UserStatus } from '../components/room/UserStatus'; |
13 | import SocketContext from '../contexts/SocketContext'; | 14 | import SocketContext from '../contexts/SocketContext'; |
14 | 15 | ||
... | @@ -106,8 +107,9 @@ export const Room: React.FC = () => { | ... | @@ -106,8 +107,9 @@ export const Room: React.FC = () => { |
106 | return ( | 107 | return ( |
107 | <Main> | 108 | <Main> |
108 | <RoomInfo roomData={roomData}/> | 109 | <RoomInfo roomData={roomData}/> |
109 | - <div className='w-full flex'> | 110 | + <div className='w-full flex justify-center'> |
110 | - {/* 게임보드를 계속 살려둬서 리스너를 항상 열어놓도록 하자 */} | 111 | + {/* 게임보드와 유저롤을 계속 살려둬서 리스너를 항상 열어놓도록 하자 */} |
112 | + <UserRole isInGame={isInGame} /> | ||
111 | <GameBoard isInGame={isInGame} /> | 113 | <GameBoard isInGame={isInGame} /> |
112 | { | 114 | { |
113 | isInGame ? ( | 115 | isInGame ? ( | ... | ... |
-
Please register or login to post a comment