Commit 1dec942b authored by Choi Ga Young's avatar Choi Ga Young
Browse files

퇴장

parent 108b1b94
......@@ -149,7 +149,7 @@ function Chat(props) {
if (!(value.msg === '')) {
if (value.sender === "system") {
return (
<Row className='border' style={{ background: "#FFFAFA" }}>
<Row style={{ background: "#F5F5F5", border:"none" }}>
{value.msg}
</Row>
)
......
......@@ -76,7 +76,10 @@ function Home() {
}
async function exitRoom(roomId) {
const response = await axios.get('/users/check', { params: { '_id': userId } })
const userNick = response.data.nickname;
await axios.put('/room/deleteMem', { userId: userId, roomId: roomId })
setSysmsg(`${userNick}님이 나갔습니다.`)
console.log(`${roomId}${userId} 탈퇴`)
setRoomCode("")
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment