()
| 40 | } |
| 41 | |
| 42 | render() { |
| 43 | let status = this.props.status; |
| 44 | if (status) { |
| 45 | status = `rct-button-${status}`; |
| 46 | } |
| 47 | |
| 48 | const className = classnames( |
| 49 | this.props.className, |
| 50 | getGrid(this.props.grid), |
| 51 | 'rct-button', |
| 52 | status |
| 53 | ); |
| 54 | |
| 55 | return ( |
| 56 | <button onClick={this.handleClick} |
| 57 | style={this.props.style} |
| 58 | disabled={this.state.disabled} |
| 59 | className={className} |
| 60 | type={this.props.type || 'button'}> |
| 61 | { this.state.show || this.props.children } |
| 62 | </button> |
| 63 | ); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | Button.propTypes = { |