changed jsx code to a better code style

This commit is contained in:
Carmine D'Amico
2016-05-25 23:19:36 +02:00
parent c0e5cbd9ef
commit 712cff2680

View File

@@ -97,15 +97,22 @@ var SettingsPage = React.createClass({
}
},
render: function() {
var buttonStyle = {
marginTop: 20,
};
var teams_row = (
<Row>
<Col md={ 4 }>
<h2>Teams</h2>
</Col>
<Col md={ 8 }>
<Button className="pull-right" style={ buttonStyle } bsSize="small" onClick={ this.handleShowTeamForm }>
<Glyphicon glyph="plus" />
</Button>
</Col>
<Col md={ 12 }>
<h2>
Teams
<Button className="pull-right" bsSize="small" onClick={ this.handleShowTeamForm }>
<Glyphicon glyph="plus" />
</Button>
</h2>
<TeamList teams={ this.state.teams } showAddTeamForm={ this.state.showAddTeamForm } onTeamsChange={ this.handleTeamsChange } />
</Col>
</Row>