diff --git a/src/components/views/dialogs/ConfirmUserActionDialog.js b/src/components/views/dialogs/ConfirmUserActionDialog.js index b65d98d78d..4848e468e9 100644 --- a/src/components/views/dialogs/ConfirmUserActionDialog.js +++ b/src/components/views/dialogs/ConfirmUserActionDialog.js @@ -49,10 +49,10 @@ export default React.createClass({ onFinished: PropTypes.func.isRequired, }, - defaultProps: { + getDefaultProps: () => ({ danger: false, askReason: false, - }, + }), componentWillMount: function() { this._reasonField = null; diff --git a/src/components/views/rooms/AppsDrawer.js b/src/components/views/rooms/AppsDrawer.js index 2976925594..2e9d3e5071 100644 --- a/src/components/views/rooms/AppsDrawer.js +++ b/src/components/views/rooms/AppsDrawer.js @@ -44,10 +44,10 @@ module.exports = React.createClass({ hide: PropTypes.bool, // If rendered, should apps drawer be visible }, - defaultProps: { + getDefaultProps: () => ({ showApps: true, hide: false, - }, + }), getInitialState: function() { return { diff --git a/src/components/views/rooms/AuxPanel.js b/src/components/views/rooms/AuxPanel.js index 3c2cf870b8..6cbec30c4d 100644 --- a/src/components/views/rooms/AuxPanel.js +++ b/src/components/views/rooms/AuxPanel.js @@ -57,10 +57,10 @@ module.exports = React.createClass({ fullHeight: PropTypes.bool, }, - defaultProps: { + getDefaultProps: () => ({ showApps: true, hideAppsDrawer: false, - }, + }), getInitialState: function() { return { counters: this._computeCounters() };