sdy

update props

...@@ -139,10 +139,13 @@ export default ({ ...@@ -139,10 +139,13 @@ export default ({
139 messageText, 139 messageText,
140 messageTime, 140 messageTime,
141 newMsgObj, 141 newMsgObj,
142 + messageArray,
142 }) => { 143 }) => {
143 const { pathname } = location; 144 const { pathname } = location;
144 const roomName = pathname.slice(1, pathname.length); 145 const roomName = pathname.slice(1, pathname.length);
145 146
147 + console.log(messageArray);
148 +
146 return ( 149 return (
147 <Wrapper> 150 <Wrapper>
148 <Header text={"KhuChat"} /> 151 <Header text={"KhuChat"} />
...@@ -164,6 +167,10 @@ export default ({ ...@@ -164,6 +167,10 @@ export default ({
164 <Title>Selected Menu Title</Title> 167 <Title>Selected Menu Title</Title>
165 </ChatScreenHeader> 168 </ChatScreenHeader>
166 <ChatScreenBox> 169 <ChatScreenBox>
170 + {messageArray &&
171 + messageArray.seeAllMessage.map((e) => (
172 + <Message text={e.text} time={e.createdAt} key={e.id} />
173 + ))}
167 {newMsgObj && <Message text={messageText} time={messageTime} />} 174 {newMsgObj && <Message text={messageText} time={messageTime} />}
168 <InputContainer> 175 <InputContainer>
169 <form onSubmit={onSubmit}> 176 <form onSubmit={onSubmit}>
......