Removed unused parameter from Button.jsx, cleaned up

This commit is contained in:
Oleksandr Zhurbenko 2016-03-12 16:27:29 -08:00
parent ff12344a34
commit 52662ac45a
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,6 @@ Button = React.createClass({
}
},
render(){
console.log(this.props);
return (
<button onClick={this.props.onClick} type="submit" id={this.props.id} className={'btn' + this.props.btn_class} rel={this.props.rel} data-placement={this.props.data_placement} title={this.props.title} style={this.props.style}>
{this.props.notification ? this.processNotification(this.props.notification) : null }

View File

@ -40,9 +40,10 @@ Polling = React.createClass({
render(){
return (
<div className="polling-test">
<div className="polling">
{this.getStyledAnswers(this.data.poll).map((question) =>
<Button onClick={this.handleClick.bind(null, question.key, question.id)} btn_class=" pollButtons" rel="tooltip" data_placement="top" label={question.key} answer={question.id} style={question.style} key={question.id}/>
<Button onClick={this.handleClick.bind(null, question.key, question.id)} btn_class=" pollButtons" rel="tooltip" data_placement="top"
label={question.key} style={question.style} key={question.id}/>
)}
</div>
)