Overnap
Builds for 1 pipeline failed in 1 minute 18 seconds

불필요한 테스트 코드 삭제

......@@ -9,24 +9,6 @@ export const Rooms: React.FC = () => {
const socket = useContext(SocketContext);
const [ rooms, setRooms ] = useState<Room[]>([]);
// for test
const testingRoom1: Room = {
uuid: '23525',
name: 'Hello World!',
currentUsers: 3,
maxUsers: 4
}
const testingRoom2: Room = {
uuid: '235252134',
name: 'Bonjour World!',
currentUsers: 6,
maxUsers: 6
}
useEffect(() => {
setRooms([testingRoom1, testingRoom2]);
// refreshRooms()
}, []);
const refreshRooms = () => {
socket.emit(MessageType.ROOM_LIST_REQUEST, (response: MessageResponse<Room[]>) => {
if (response.ok) {
......@@ -38,7 +20,7 @@ export const Rooms: React.FC = () => {
});
}
// useEffect(refreshRooms, []);
useEffect(refreshRooms, []);
return (
<Main>
......