mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			937 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			937 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='r-margin'>
 | |
|             <table className='outerborder'>
 | |
|               <thead>
 | |
|                 <tr>
 | |
|                   <th></th>
 | |
|                   <th>Name</th>
 | |
|                   <th>Description</th>
 | |
|                   <th>Strategy</th>
 | |
|                   <th></th>
 | |
|                 </tr>
 | |
|               </thead>
 | |
|               <tbody>
 | |
|                 {featureNodes}
 | |
|               </tbody>
 | |
|             </table>
 | |
|           </div>
 | |
|           );
 | |
|     }
 | |
| });
 | |
| 
 | |
| module.exports = FeatureList; |