17 lines
419 B
JavaScript
17 lines
419 B
JavaScript
|
/** @jsx React.DOM */
|
||
|
|
||
|
var Add = React.createClass({
|
||
|
render: function() {
|
||
|
return (
|
||
|
<Button
|
||
|
className="add"
|
||
|
disabled={this.props.disabled}
|
||
|
onClick={function(event) {
|
||
|
this.props.onClick(event);
|
||
|
}.bind(this)}
|
||
|
title={this.props.title ? this.props.title : 'add'}
|
||
|
/>
|
||
|
);
|
||
|
},
|
||
|
});
|