mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
Update generate-plugin package by removing unnecessary Button component
This commit is contained in:
parent
69e0563d27
commit
4325102586
@ -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;
|
||||
@ -1,3 +0,0 @@
|
||||
.button {
|
||||
|
||||
}
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user