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-05-31 04:57:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f2951c89d207bb40acd953c7b58ae36e77d9a834
f2951c89
1 parent
b60371e7
방 목록 컴포넌트에 방 정보 컴포넌트 적용
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
web/src/pages/Rooms.tsx
web/src/pages/Rooms.tsx
View file @
f2951c8
...
...
@@ -2,6 +2,7 @@ import React, { useContext, useEffect, useState } from 'react';
import { RouteComponentProps } from 'react-router';
import { Footer } from '../components/common/Footer';
import { MessageResponse, MessageType } from '../components/common/types';
import { RoomInfo } from '../components/rooms/RoomInfo';
import { Room } from '../components/rooms/types';
import SocketContext from '../contexts/SocketContext';
...
...
@@ -23,10 +24,11 @@ export const Rooms: React.FC<RouteComponentProps> = ({ history }) => {
useEffect(refreshRooms, []);
return (
<div>
<header>header header</header>
<div className='flex items-center'>
<div>room test</div>
<div className='flex flex-col items-center w-screen h-screen'>
<div className='mt-auto w-screen flex flex-col items-center'>
<RoomInfo name='테스트테스트' currentUsers={3} maxUsers={9} uuid='234234'></RoomInfo>
<RoomInfo name='테스트테스트' currentUsers={5} maxUsers={9} uuid='234234'></RoomInfo>
<RoomInfo name='테스트테스트' currentUsers={9} maxUsers={9} uuid='234234'></RoomInfo>
</div>
<Footer />
</div>
...
...
Please
register
or
login
to post a comment