Builds for
1 pipeline
failed
in
1 minute 18 seconds
불필요한 테스트 코드 삭제
Showing
1 changed file
with
1 additions
and
19 deletions
... | @@ -9,24 +9,6 @@ export const Rooms: React.FC = () => { | ... | @@ -9,24 +9,6 @@ export const Rooms: React.FC = () => { |
9 | const socket = useContext(SocketContext); | 9 | const socket = useContext(SocketContext); |
10 | const [ rooms, setRooms ] = useState<Room[]>([]); | 10 | const [ rooms, setRooms ] = useState<Room[]>([]); |
11 | 11 | ||
12 | - // for test | ||
13 | - const testingRoom1: Room = { | ||
14 | - uuid: '23525', | ||
15 | - name: 'Hello World!', | ||
16 | - currentUsers: 3, | ||
17 | - maxUsers: 4 | ||
18 | - } | ||
19 | - const testingRoom2: Room = { | ||
20 | - uuid: '235252134', | ||
21 | - name: 'Bonjour World!', | ||
22 | - currentUsers: 6, | ||
23 | - maxUsers: 6 | ||
24 | - } | ||
25 | - useEffect(() => { | ||
26 | - setRooms([testingRoom1, testingRoom2]); | ||
27 | - // refreshRooms() | ||
28 | - }, []); | ||
29 | - | ||
30 | const refreshRooms = () => { | 12 | const refreshRooms = () => { |
31 | socket.emit(MessageType.ROOM_LIST_REQUEST, (response: MessageResponse<Room[]>) => { | 13 | socket.emit(MessageType.ROOM_LIST_REQUEST, (response: MessageResponse<Room[]>) => { |
32 | if (response.ok) { | 14 | if (response.ok) { |
... | @@ -38,7 +20,7 @@ export const Rooms: React.FC = () => { | ... | @@ -38,7 +20,7 @@ export const Rooms: React.FC = () => { |
38 | }); | 20 | }); |
39 | } | 21 | } |
40 | 22 | ||
41 | - // useEffect(refreshRooms, []); | 23 | + useEffect(refreshRooms, []); |
42 | 24 | ||
43 | return ( | 25 | return ( |
44 | <Main> | 26 | <Main> | ... | ... |
-
Please register or login to post a comment