Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-01 02:14:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c9702d29bdae68f33af38ede2c9d9f97efefdb23
c9702d29
1 parent
e5782bf7
update props
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
front/src/Routes/Chat/ChatPresenter.js
front/src/Routes/Chat/ChatPresenter.js
View file @
c9702d2
...
...
@@ -139,10 +139,13 @@ export default ({
messageText
,
messageTime
,
newMsgObj
,
messageArray
,
})
=>
{
const
{
pathname
}
=
location
;
const
roomName
=
pathname
.
slice
(
1
,
pathname
.
length
);
console
.
log
(
messageArray
);
return
(
<
Wrapper
>
<
Header
text
=
{
"KhuChat"
}
/
>
...
...
@@ -164,6 +167,10 @@ export default ({
<
Title
>
Selected
Menu
Title
<
/Title
>
<
/ChatScreenHeader
>
<
ChatScreenBox
>
{
messageArray
&&
messageArray
.
seeAllMessage
.
map
((
e
)
=>
(
<
Message
text
=
{
e
.
text
}
time
=
{
e
.
createdAt
}
key
=
{
e
.
id
}
/
>
))}
{
newMsgObj
&&
<
Message
text
=
{
messageText
}
time
=
{
messageTime
}
/>
}
<
InputContainer
>
<
form
onSubmit
=
{
onSubmit
}
>
...
...
Please
register
or
login
to post a comment