Use the documented syntax for default props in CreateReactClass
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
64d542dc4a
commit
debc124714
3 changed files with 6 additions and 6 deletions
|
@ -57,10 +57,10 @@ module.exports = React.createClass({
|
|||
fullHeight: PropTypes.bool,
|
||||
},
|
||||
|
||||
defaultProps: {
|
||||
getDefaultProps: () => ({
|
||||
showApps: true,
|
||||
hideAppsDrawer: false,
|
||||
},
|
||||
}),
|
||||
|
||||
getInitialState: function() {
|
||||
return { counters: this._computeCounters() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue