Builds for
1 pipeline
passed
in
8 minutes 1 second
RoomInfo와 RoundInfo 폴리싱
Showing
2 changed files
with
4 additions
and
3 deletions
... | @@ -10,7 +10,7 @@ interface RoomInfoProps { | ... | @@ -10,7 +10,7 @@ interface RoomInfoProps { |
10 | 10 | ||
11 | export const RoomInfo: React.FC<RoomInfoProps> = ({ roomData }) => { | 11 | export const RoomInfo: React.FC<RoomInfoProps> = ({ roomData }) => { |
12 | return ( | 12 | return ( |
13 | - <div className='m-3 mb-8 w-5/6 flex items-center place-content-between'> | 13 | + <div className='m-3 my-8 w-5/6 flex items-center place-content-between'> |
14 | <div>{roomData.name}</div> | 14 | <div>{roomData.name}</div> |
15 | <div>{roomData.users.length}/{roomData.maxUsers}</div> | 15 | <div>{roomData.users.length}/{roomData.maxUsers}</div> |
16 | </div> | 16 | </div> | ... | ... |
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import SocketContext from '../../contexts/SocketContext'; | 2 | import SocketContext from '../../contexts/SocketContext'; |
3 | +import { Timer } from './Timer'; | ||
3 | import { RoundData } from './types'; | 4 | import { RoundData } from './types'; |
4 | 5 | ||
5 | interface RoundInfoProps { | 6 | interface RoundInfoProps { |
... | @@ -10,9 +11,9 @@ interface RoundInfoProps { | ... | @@ -10,9 +11,9 @@ interface RoundInfoProps { |
10 | export const RoundInfo: React.FC<RoundInfoProps> = ({ round, wordChosen }) => { | 11 | export const RoundInfo: React.FC<RoundInfoProps> = ({ round, wordChosen }) => { |
11 | return ( | 12 | return ( |
12 | <div className='p-3 m-3 h-14 rounded shadow flex items-center place-content-between'> | 13 | <div className='p-3 m-3 h-14 rounded shadow flex items-center place-content-between'> |
13 | - <div>대충 타이머 위치</div> | 14 | + <Timer /> |
14 | <div>{wordChosen}</div> | 15 | <div>{wordChosen}</div> |
15 | - <div>R{round}</div> | 16 | + <div>Round {round}/5</div> |
16 | </div> | 17 | </div> |
17 | ); | 18 | ); |
18 | } | 19 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment