1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

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

View File

@@ -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);