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
b9e145e1
Commit
b9e145e1
authored
Jan 22, 2021
by
우지원
Browse files
e
parent
174f88d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
client/src/Components/Chat.js
View file @
b9e145e1
...
@@ -59,6 +59,7 @@ function Chat(props) {
...
@@ -59,6 +59,7 @@ function Chat(props) {
}
}
function
handleClick
()
{
function
handleClick
()
{
props
.
setRecievedMsg
(
''
)
setChat
([])
setChat
([])
props
.
handleChatc
()
props
.
handleChatc
()
}
}
...
...
client/src/Pages/HomePage.js
View file @
b9e145e1
...
@@ -140,7 +140,7 @@ function Home() {
...
@@ -140,7 +140,7 @@ function Home() {
<
/div
>
<
/div
>
}
}
{
chat
?
{
chat
?
<
Chat
handleChatc
=
{
handleChatc
}
sendMsg
=
{
sendMsg
}
singleChat
=
{
singleChat
}
singleUser
=
{
singleUser
}
singleImg
=
{
singleImg
}
recievedMsg
=
{
recievedMsg
}
recievedUser
=
{
recievedUser
}
recievedImg
=
{
recievedImg
}
setSingleChat
=
{
setSingleChat
}
setSingleUser
=
{
setSingleUser
}
setSingleImg
=
{
setSingleImg
}
roomCode
=
{
roomCode
}
roomName
=
{
roomName
}
/
>
<
Chat
handleChatc
=
{
handleChatc
}
sendMsg
=
{
sendMsg
}
singleChat
=
{
singleChat
}
setRecievedMsg
=
{
setRecievedMsg
}
singleUser
=
{
singleUser
}
singleImg
=
{
singleImg
}
recievedMsg
=
{
recievedMsg
}
setRecievedMsg
=
{
setRecievedMsg
}
recievedUser
=
{
recievedUser
}
recievedImg
=
{
recievedImg
}
setSingleChat
=
{
setSingleChat
}
setSingleUser
=
{
setSingleUser
}
setSingleImg
=
{
setSingleImg
}
roomCode
=
{
roomCode
}
roomName
=
{
roomName
}
/
>
:
null
}
:
null
}
{
open
?
{
open
?
<
div
className
=
"
vh-90 flex-column align-items-center justify-content-center mt-2
"
variant
=
"
dark
"
>
<
div
className
=
"
vh-90 flex-column align-items-center justify-content-center mt-2
"
variant
=
"
dark
"
>
...
@@ -167,4 +167,4 @@ function Home() {
...
@@ -167,4 +167,4 @@ function Home() {
);
);
}
}
export
default
Home
;
export
default
Home
;
\ No newline at end of file
server/server.js
View file @
b9e145e1
...
@@ -70,4 +70,4 @@ server.listen(3030, () => {
...
@@ -70,4 +70,4 @@ server.listen(3030, () => {
})
})
export
default
server
export
default
server
// module.exports = server;
// module.exports = server;
\ No newline at end of file
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