We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: src/components/button/index.js: Cannot read property 'name' of undefined at ClassProperty (/Users/neoziro/projects/xxx/node_modules/babel-plugin-transform-react-remove-prop-types/lib/index.js:55:84)
import React, {PropTypes} from 'react'; import styles from './button.scss'; import BaseComponent from 'components/base'; import classnames from 'classnames'; export default class Button extends BaseComponent { static propTypes = { block: PropTypes.bool, large: PropTypes.bool }; styles = styles; render() { const {className: propClassName, children, block, large, ...props} = this.props; const className = classnames(styles.btn, { [styles.btnBlock]: block, [styles.btnLarge]: large }, propClassName); return <button {...{className}} {...props}>{children}</button>; } }
The text was updated successfully, but these errors were encountered:
Thanks. I'm gonna have a look!
Sorry, something went wrong.
Can you have a look at #8?
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: