Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
messenger
Commits
1dec942b
Commit
1dec942b
authored
Jan 27, 2021
by
Choi Ga Young
Browse files
퇴장
parent
108b1b94
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/Components/Chat.js
View file @
1dec942b
...
...
@@ -149,7 +149,7 @@ function Chat(props) {
if
(
!
(
value
.
msg
===
''
))
{
if
(
value
.
sender
===
"
system
"
)
{
return
(
<
Row
className
=
'
border
'
style
=
{{
background
:
"
#F
FFAFA
"
}}
>
<
Row
style
=
{{
background
:
"
#F
5F5F5
"
,
border
:
"
none
"
}}
>
{
value
.
msg
}
<
/Row
>
)
...
...
client/src/Pages/HomePage.js
View file @
1dec942b
...
...
@@ -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
(
""
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment