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
React
Raw Normal View History

2014-11-03 13:54:06 +01:00
var React = require('react');
var Feature = require('./Feature');
2014-10-30 18:25:38 +01:00
var FeatureList = React.createClass({
render: function() {
2014-11-03 13:54:06 +01:00
var featureNodes = this.props.features.map(function(feature) {
return (
<Feature
2014-10-30 18:25:38 +01:00
key={feature.name}
feature={feature}
onChange={this.props.onFeatureChanged} />
);
}.bind(this));
return (
<div className=''>
<table className='outerborder man'>
<thead>
<tr>
2014-11-13 19:48:30 +01:00
<th></th>
<th>Name</th>
<th>Strategy</th>
<th></th>
</tr>
</thead>
2014-11-17 11:15:10 +01:00
{featureNodes}
</table>
</div>
);
2014-10-30 18:25:38 +01:00
}
});
module.exports = FeatureList;