1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/public/js/components/feature/FeatureList.jsx

33 lines
847 B
JavaScript

var React = require('react');
var Feature = require('./Feature');
var FeatureList = React.createClass({
render: function() {
var featureNodes = this.props.features.map(function(feature) {
return (
<Feature
key={feature.name}
feature={feature}
onChange={this.props.onFeatureChanged} />
);
}.bind(this));
return (
<div className=''>
<table className='outerborder man'>
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Strategy</th>
<th></th>
</tr>
</thead>
{featureNodes}
</table>
</div>
);
}
});
module.exports = FeatureList;