Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -7,7 +7,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ... | @@ -7,7 +7,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
7 | import { faAddressBook } from "@fortawesome/free-solid-svg-icons"; | 7 | import { faAddressBook } from "@fortawesome/free-solid-svg-icons"; |
8 | import { Link } from "react-router-dom"; | 8 | import { Link } from "react-router-dom"; |
9 | import Category from "../Category/CategoryContainer"; | 9 | import Category from "../Category/CategoryContainer"; |
10 | -import SendingMsg from "../../Components/SendingMsg"; | 10 | +import Message from "../../Components/Message"; |
11 | 11 | ||
12 | const Wrapper = styled.div` | 12 | const Wrapper = styled.div` |
13 | display: grid; | 13 | display: grid; |
... | @@ -136,9 +136,9 @@ export default ({ | ... | @@ -136,9 +136,9 @@ export default ({ |
136 | location, | 136 | location, |
137 | message, | 137 | message, |
138 | onSubmit, | 138 | onSubmit, |
139 | - sendingText, | 139 | + messageText, |
140 | - sendingTime, | 140 | + messageTime, |
141 | - sendingMsgObj, | 141 | + newMsgObj, |
142 | }) => { | 142 | }) => { |
143 | const { pathname } = location; | 143 | const { pathname } = location; |
144 | const roomName = pathname.slice(1, pathname.length); | 144 | const roomName = pathname.slice(1, pathname.length); |
... | @@ -164,7 +164,7 @@ export default ({ | ... | @@ -164,7 +164,7 @@ export default ({ |
164 | <Title>Selected Menu Title</Title> | 164 | <Title>Selected Menu Title</Title> |
165 | </ChatScreenHeader> | 165 | </ChatScreenHeader> |
166 | <ChatScreenBox> | 166 | <ChatScreenBox> |
167 | - <SendingMsg text={sendingText} time={sendingTime} /> | 167 | + {newMsgObj && <Message text={messageText} time={messageTime} />} |
168 | <InputContainer> | 168 | <InputContainer> |
169 | <form onSubmit={onSubmit}> | 169 | <form onSubmit={onSubmit}> |
170 | <Input | 170 | <Input | ... | ... |
-
Please register or login to post a comment