Added basic screen to add incoming webhooks

Этот коммит содержится в:
Harrison Healey
2016-03-28 09:41:03 -04:00
родитель dcdea9f30b
Коммит 3246d97d5e
8 изменённых файлов: 338 добавлений и 20 удалений

Просмотреть файл

@@ -14,20 +14,10 @@ export default class SpinnerButton extends React.Component {
};
}
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
if (this.props.onClick) {
this.props.onClick(e);
}
}
render() {
if (this.props.spinning) {
const {spinning, children, ...props} = this.props; // eslint-disable-line no-use-before-define
if (spinning) {
return (
<img
className='spinner-button__gif'
@@ -38,10 +28,10 @@ export default class SpinnerButton extends React.Component {
return (
<button
onClick={this.handleClick}
className='btn btn-sm btn-primary'
className='btn btn-primary'
{...props}
>
{this.props.children}
{children}
</button>
);
}