diff --git a/src/views/ChatRoom/Body/ChatSuggest/ChatSuggest.js b/src/views/ChatRoom/Body/ChatSuggest/ChatSuggest.js index 251a7f5..01d801d 100644 --- a/src/views/ChatRoom/Body/ChatSuggest/ChatSuggest.js +++ b/src/views/ChatRoom/Body/ChatSuggest/ChatSuggest.js @@ -7,8 +7,8 @@ export default class ChatSuggest extends Component { return (
- {suggest.map((item, i) => ( - + {suggest.map((row, i) => ( + ))}
@@ -16,9 +16,16 @@ export default class ChatSuggest extends Component { } } -class Suggest extends Component { - render() { - const { item } = this.props; - return
{item.text}
; - } -} +const Row = (row) => { + return ( +
+ {row.map((item, i) => ( + + ))} +
+ ); +}; + +const Suggest = (item) => { + return
{item.text}
; +};