Sha256: b6c67307e33a6ade2808011be9000d3b3134f5eeb6ba9c3ef0745996ae91919d
Contents?: true
Size: 795 Bytes
Versions: 12
Compression:
Stored size: 795 Bytes
Contents
var React = require('react'); var Mui = require('material-ui'); var RaisedButton = require('./material-ui/raised-button_.jsx'); /** * @prop type * @prop onRemovedChannels */ var GlobalButton = React.createClass({ removeChannels: function() { this.props.onRemovedChannels(); }, render: function(){ var button = this.props.type==='add'? <RaisedButton label='Add' secondary={true} /> : this.props.type==='remove' ? <RaisedButton label='Clear Row' primary={true} onTouchTap={this.removeChannels} /> : <RaisedButton label='Clear All' primary={true} onTouchTap={this.removeChannels} />; return (<div className='div-button-container'> {button} </div>); } }); module.exports = GlobalButton;
Version data entries
12 entries across 12 versions & 1 rubygems