mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
Move panel code to FeatureList
This commit is contained in:
parent
79b0a1fb13
commit
bb2c4b63d8
@ -56,7 +56,17 @@ var FeatureList = React.createClass({
|
||||
);
|
||||
}.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 (
|
||||
<div>
|
||||
<Menu />
|
||||
<div className='panel panel-primary'>
|
||||
<div className='panel-heading'>
|
||||
<h3 className='panel-title'>Features</h3>
|
||||
</div>
|
||||
<div className='panel-body'>
|
||||
<FeatureList
|
||||
unsavedFeatures={this.state.unsavedFeatures}
|
||||
savedFeatures={this.state.savedFeatures}
|
||||
onFeatureChanged={this.updateFeature}
|
||||
onFeatureSubmit={this.createFeature} />
|
||||
</div>
|
||||
</div>
|
||||
<FeatureList
|
||||
unsavedFeatures={this.state.unsavedFeatures}
|
||||
savedFeatures={this.state.savedFeatures}
|
||||
onFeatureChanged={this.updateFeature}
|
||||
onFeatureSubmit={this.createFeature} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user