Fix remaining React.PropTypes to use import PropTypes from 'prop-types';

This commit is contained in:
Mikael Sand
2017-07-15 17:13:39 +03:00
parent 113b1ec597
commit c76ce3c780
2 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ export default class extends Shape {
};
static childContextTypes = {
isInAParentText: React.PropTypes.bool
isInAParentText: PropTypes.bool
};
getChildContext() {
@@ -31,7 +31,7 @@ export default class extends Shape {
getContextTypes() {
return {
isInAParentText: React.PropTypes.bool
isInAParentText: PropTypes.bool
};
}

View File

@@ -19,7 +19,7 @@ export default class extends Shape {
};
static childContextTypes = {
isInAParentText: React.PropTypes.bool
isInAParentText: PropTypes.bool
};
getChildContext() {
@@ -30,7 +30,7 @@ export default class extends Shape {
getContextTypes() {
return {
isInAParentText: React.PropTypes.bool
isInAParentText: PropTypes.bool
};
}