sdy

add outcomingMsg, time prop

...@@ -142,7 +142,14 @@ const StyledLink = styled(Link)` ...@@ -142,7 +142,14 @@ const StyledLink = styled(Link)`
142 } 142 }
143 `; 143 `;
144 144
145 -export default ({ location, message, onSubmit, outcomingMsg, incomingMsg }) => { 145 +export default ({
146 + location,
147 + message,
148 + onSubmit,
149 + outcomingMsg,
150 + outcomingTime,
151 + incomingMsg,
152 +}) => {
146 const { pathname } = location; 153 const { pathname } = location;
147 const roomName = pathname.slice(1, pathname.length); 154 const roomName = pathname.slice(1, pathname.length);
148 return ( 155 return (
...@@ -167,7 +174,9 @@ export default ({ location, message, onSubmit, outcomingMsg, incomingMsg }) => { ...@@ -167,7 +174,9 @@ export default ({ location, message, onSubmit, outcomingMsg, incomingMsg }) => {
167 </ChatScreenHeader> 174 </ChatScreenHeader>
168 <ChatScreenBox> 175 <ChatScreenBox>
169 {incomingMsg && <IncomingMsg text={incomingMsg} />} 176 {incomingMsg && <IncomingMsg text={incomingMsg} />}
170 - {outcomingMsg && <OutcomingMsg text={outcomingMsg} />} 177 + {outcomingMsg && (
178 + <OutcomingMsg text={outcomingMsg} time={outcomingTime} />
179 + )}
171 <InputWrapper> 180 <InputWrapper>
172 <InputContainer> 181 <InputContainer>
173 <form onSubmit={onSubmit}> 182 <form onSubmit={onSubmit}>
......