diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/components/Search.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/components/Search.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/Search.js b/server/sonar-web/src/main/js/apps/code/components/Search.js index 508487eaea0..12b644d943c 100644 --- a/server/sonar-web/src/main/js/apps/code/components/Search.js +++ b/server/sonar-web/src/main/js/apps/code/components/Search.js @@ -18,6 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { debounce } from 'lodash'; import Components from './Components'; @@ -28,13 +29,13 @@ import { getComponentUrl } from '../../../helpers/urls'; export default class Search extends React.PureComponent { static contextTypes = { - router: React.PropTypes.object.isRequired + router: PropTypes.object.isRequired }; static propTypes = { - component: React.PropTypes.object.isRequired, - location: React.PropTypes.object.isRequired, - onError: React.PropTypes.func.isRequired + component: PropTypes.object.isRequired, + location: PropTypes.object.isRequired, + onError: PropTypes.func.isRequired }; state = { |