|
1 | 1 | import React from "react";
|
| 2 | +import PropTypes from "prop-types"; |
2 | 3 | import withSideEffect from "react-side-effect";
|
3 | 4 | import deepEqual from "deep-equal";
|
4 | 5 | import {
|
@@ -28,24 +29,24 @@ const Helmet = (Component) => class HelmetWrapper extends React.Component {
|
28 | 29 | * @param {String} titleTemplate: "MySite.com - %s"
|
29 | 30 | */
|
30 | 31 | static propTypes = {
|
31 |
| - base: React.PropTypes.object, |
32 |
| - bodyAttributes: React.PropTypes.object, |
33 |
| - children: React.PropTypes.oneOfType([ |
34 |
| - React.PropTypes.arrayOf(React.PropTypes.node), |
35 |
| - React.PropTypes.node |
| 32 | + base: PropTypes.object, |
| 33 | + bodyAttributes: PropTypes.object, |
| 34 | + children: PropTypes.oneOfType([ |
| 35 | + PropTypes.arrayOf(PropTypes.node), |
| 36 | + PropTypes.node |
36 | 37 | ]),
|
37 |
| - defaultTitle: React.PropTypes.string, |
38 |
| - encodeSpecialCharacters: React.PropTypes.bool, |
39 |
| - htmlAttributes: React.PropTypes.object, |
40 |
| - link: React.PropTypes.arrayOf(React.PropTypes.object), |
41 |
| - meta: React.PropTypes.arrayOf(React.PropTypes.object), |
42 |
| - noscript: React.PropTypes.arrayOf(React.PropTypes.object), |
43 |
| - onChangeClientState: React.PropTypes.func, |
44 |
| - script: React.PropTypes.arrayOf(React.PropTypes.object), |
45 |
| - style: React.PropTypes.arrayOf(React.PropTypes.object), |
46 |
| - title: React.PropTypes.string, |
47 |
| - titleAttributes: React.PropTypes.object, |
48 |
| - titleTemplate: React.PropTypes.string |
| 38 | + defaultTitle: PropTypes.string, |
| 39 | + encodeSpecialCharacters: PropTypes.bool, |
| 40 | + htmlAttributes: PropTypes.object, |
| 41 | + link: PropTypes.arrayOf(PropTypes.object), |
| 42 | + meta: PropTypes.arrayOf(PropTypes.object), |
| 43 | + noscript: PropTypes.arrayOf(PropTypes.object), |
| 44 | + onChangeClientState: PropTypes.func, |
| 45 | + script: PropTypes.arrayOf(PropTypes.object), |
| 46 | + style: PropTypes.arrayOf(PropTypes.object), |
| 47 | + title: PropTypes.string, |
| 48 | + titleAttributes: PropTypes.object, |
| 49 | + titleTemplate: PropTypes.string |
49 | 50 | };
|
50 | 51 |
|
51 | 52 | static defaultProps = {
|
|
0 commit comments