Merge pull request #1571 from matrix-org/t3chguy/class-warning-thing

Fixes React warning
This commit is contained in:
Matthew Hodgson 2017-11-04 15:41:57 +00:00 committed by GitHub
commit 3fd5937687
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,11 +26,9 @@ class MenuOption extends React.Component {
this._onClick = this._onClick.bind(this);
}
getDefaultProps() {
return {
static defaultProps = {
disabled: false,
};
}
_onMouseEnter() {
this.props.onMouseEnter(this.props.dropdownKey);