diff --git a/elements/TSpan.js b/elements/TSpan.js index 391c01a0..4f97de41 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 6d30d3a7..60f86dd1 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 }; }