1
0
mirror of synced 2024-12-11 05:55:58 +01:00
bemaniutils/bemani/frontend/static/components/toggle.react.js
2019-12-08 21:43:49 +00:00

17 lines
428 B
JavaScript

/** @jsx React.DOM */
var Toggle = React.createClass({
render: function() {
return (
<Button
className="toggle"
disabled={this.props.disabled}
onClick={function(event) {
this.props.onClick(event);
}.bind(this)}
title={this.props.title ? this.props.title : 'toggle'}
/>
);
},
});