You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
fix getDefaultProps mixup
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -155,9 +155,11 @@ module.exports = withMatrixClient(React.createClass({
|
|||||||
isTwelveHour: PropTypes.bool,
|
isTwelveHour: PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultProps: {
|
getDefaultProps: function() {
|
||||||
// no-op function because onWidgetLoad is optional yet some subcomponents assume its existence
|
return {
|
||||||
|
// no-op function because onWidgetLoad is optional yet some sub-components assume its existence
|
||||||
onWidgetLoad: function() {},
|
onWidgetLoad: function() {},
|
||||||
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user