Update generate-plugin package by removing unnecessary Button component

This commit is contained in:
cyril lopez 2017-11-06 11:53:41 +01:00
parent 69e0563d27
commit 4325102586
3 changed files with 1 additions and 30 deletions

View File

@ -1,27 +0,0 @@
/**
*
* Button
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
class Button extends React.Component {
// eslint-disable-line react/prefer-stateless-function
render() {
return (
<button className={`btn btn-primary ${styles.button}`} {...this.props}>
{this.props.label}
</button>
);
}
}
Button.propTypes = {
label: PropTypes.string.isRequired,
};
export default Button;

View File

@ -52,6 +52,7 @@ export class ExamplePage extends React.Component {
label={this.props.loading ? 'Loading...' : 'Submit'}
disabled={this.props.loading}
onClick={this.props.loadData}
primary
/>
</div>
</div>