sdy

update props

......@@ -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}>
......