Sha256: d5374f60e1744f96e205dfbe8dbdb64e619f37d3f9e786bdba359fbc405dcc99
Contents?: true
Size: 650 Bytes
Versions: 32
Compression:
Stored size: 650 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} /> : <RaisedButton label='Remove' primary={true} onTouchTap={this.removeChannels} />; return (<div className='div-button-container'> {button} </div>); } }); module.exports = GlobalButton;
Version data entries
32 entries across 32 versions & 1 rubygems