blob: e019fbcbfec1e3383af99c945937a4d8f122e3c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from 'react';
import Permission from './permission';
export default React.createClass({
propTypes:{
permissions: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
},
renderPermissions() {
return this.props.permissions.map(permission => {
return <Permission key={permission.key} permission={permission} project={this.props.project}/>;
});
},
render() {
return <ul id="global-permissions-list">{this.renderPermissions()}</ul>;
}
});
|