blob: cb2d0660b0c1b1f1bedd2333d57aa8235b84c871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
const MemberListTeamItem = require('./member_list_team_item.jsx');
export default class MemberListTeam extends React.Component {
render() {
const memberList = this.props.users.map(function makeListItem(user) {
return (
<MemberListTeamItem
key={user.id}
user={user}
/>
);
}, this);
return (
<table className='table more-table member-list-holder'>
<tbody>
{memberList}
</tbody>
</table>
);
}
}
MemberListTeam.propTypes = {
users: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
};
|