mirror of https://github.com/vector-im/riot-web
Merge pull request #1571 from matrix-org/t3chguy/class-warning-thing
Fixes React warningpull/21833/head
commit
3fd5937687
|
@ -26,11 +26,9 @@ class MenuOption extends React.Component {
|
|||
this._onClick = this._onClick.bind(this);
|
||||
}
|
||||
|
||||
getDefaultProps() {
|
||||
return {
|
||||
disabled: false,
|
||||
};
|
||||
}
|
||||
static defaultProps = {
|
||||
disabled: false,
|
||||
};
|
||||
|
||||
_onMouseEnter() {
|
||||
this.props.onMouseEnter(this.props.dropdownKey);
|
||||
|
|
Loading…
Reference in New Issue