diff --git a/elements/TSpan.js b/elements/TSpan.js index a4447bbd..4c33f99d 100644 --- a/elements/TSpan.js +++ b/elements/TSpan.js @@ -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 }; }; diff --git a/elements/Text.js b/elements/Text.js index e7abd6b9..a3b709d8 100644 --- a/elements/Text.js +++ b/elements/Text.js @@ -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 }; };