Adrien BĂ©raud | 995e802 | 2021-04-08 13:46:51 -0400 | [diff] [blame^] | 1 | import List from '@material-ui/core/List' |
2 | import React from 'react' | ||||
3 | import ConversationListItem from './ConversationListItem' | ||||
4 | |||||
5 | class ConversationList extends React.Component { | ||||
6 | render() { | ||||
7 | |||||
8 | return ( | ||||
9 | <List> | ||||
10 | {this.props.conversations.forEach(conversation => { | ||||
11 | <ConversationListItem conversation={conversation} /> | ||||
12 | })} | ||||
13 | </List> | ||||
14 | ) | ||||
15 | } | ||||
16 | } | ||||
17 | |||||
18 | export default ConversationList |