1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00

Move panel code to FeatureList

This commit is contained in:
Jari Bakken 2014-10-24 10:40:41 +02:00
parent 79b0a1fb13
commit bb2c4b63d8

View File

@ -56,7 +56,17 @@ var FeatureList = React.createClass({
); );
}.bind(this)); }.bind(this));
return (<div>{featureNodes}</div>); return (
<div className='panel panel-primary'>
<div className='panel-heading'>
<h3 className='panel-title'>Features</h3>
</div>
<div className='panel-body'>
{featureNodes}
</div>
</div>
);
} }
}); });
@ -112,18 +122,11 @@ var Unleash = React.createClass({
return ( return (
<div> <div>
<Menu /> <Menu />
<div className='panel panel-primary'> <FeatureList
<div className='panel-heading'> unsavedFeatures={this.state.unsavedFeatures}
<h3 className='panel-title'>Features</h3> savedFeatures={this.state.savedFeatures}
</div> onFeatureChanged={this.updateFeature}
<div className='panel-body'> onFeatureSubmit={this.createFeature} />
<FeatureList
unsavedFeatures={this.state.unsavedFeatures}
savedFeatures={this.state.savedFeatures}
onFeatureChanged={this.updateFeature}
onFeatureSubmit={this.createFeature} />
</div>
</div>
</div> </div>
); );
} }