Removed unused parameter from Button.jsx, cleaned up
This commit is contained in:
parent
ff12344a34
commit
52662ac45a
@ -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 }
|
||||
|
@ -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>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user