Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-10 07:07:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f0c048471ce02fa52a94d2dcad6c7f11ecae63c6
f0c04847
1 parent
3fead7e5
Room 컴포넌트에 UserRole컴포넌트 적용
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
web/src/pages/Room.tsx
web/src/pages/Room.tsx
View file @
f0c0484
...
...
@@ -9,6 +9,7 @@ import { Ready } from '../components/room/Ready';
import { RoomInfo } from '../components/room/RoomInfo';
import { RoomData, UpdateRoomUser } from '../components/room/types';
import { UserInfo } from '../components/room/UserInfo';
import { UserRole } from '../components/room/UserRole';
import { UserStatus } from '../components/room/UserStatus';
import SocketContext from '../contexts/SocketContext';
...
...
@@ -106,8 +107,9 @@ export const Room: React.FC = () => {
return (
<Main>
<RoomInfo roomData={roomData}/>
<div className='w-full flex'>
{/* 게임보드를 계속 살려둬서 리스너를 항상 열어놓도록 하자 */}
<div className='w-full flex justify-center'>
{/* 게임보드와 유저롤을 계속 살려둬서 리스너를 항상 열어놓도록 하자 */}
<UserRole isInGame={isInGame} />
<GameBoard isInGame={isInGame} />
{
isInGame ? (
...
...
Please
register
or
login
to post a comment