mirror of https://github.com/vector-im/riot-web
Use the documented syntax for default props in CreateReactClass
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
64d542dc4a
commit
debc124714
|
@ -49,10 +49,10 @@ export default React.createClass({
|
||||||
onFinished: PropTypes.func.isRequired,
|
onFinished: PropTypes.func.isRequired,
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultProps: {
|
getDefaultProps: () => ({
|
||||||
danger: false,
|
danger: false,
|
||||||
askReason: false,
|
askReason: false,
|
||||||
},
|
}),
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
this._reasonField = null;
|
this._reasonField = null;
|
||||||
|
|
|
@ -44,10 +44,10 @@ module.exports = React.createClass({
|
||||||
hide: PropTypes.bool, // If rendered, should apps drawer be visible
|
hide: PropTypes.bool, // If rendered, should apps drawer be visible
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultProps: {
|
getDefaultProps: () => ({
|
||||||
showApps: true,
|
showApps: true,
|
||||||
hide: false,
|
hide: false,
|
||||||
},
|
}),
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -57,10 +57,10 @@ module.exports = React.createClass({
|
||||||
fullHeight: PropTypes.bool,
|
fullHeight: PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultProps: {
|
getDefaultProps: () => ({
|
||||||
showApps: true,
|
showApps: true,
|
||||||
hideAppsDrawer: false,
|
hideAppsDrawer: false,
|
||||||
},
|
}),
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return { counters: this._computeCounters() };
|
return { counters: this._computeCounters() };
|
||||||
|
|
Loading…
Reference in New Issue