From e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 25 Jul 2017 13:18:52 +0200 Subject: update react (#2288) --- server/sonar-web/src/main/js/apps/project-admin/key/Key.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/project-admin/key/Key.js') diff --git a/server/sonar-web/src/main/js/apps/project-admin/key/Key.js b/server/sonar-web/src/main/js/apps/project-admin/key/Key.js index 97cd01c3f1c..130d67cd4c2 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/key/Key.js +++ b/server/sonar-web/src/main/js/apps/project-admin/key/Key.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 Helmet from 'react-helmet'; import { connect } from 'react-redux'; import Header from './Header'; @@ -38,12 +39,12 @@ import { getProjectAdminProjectModules, getComponent } from '../../../store/root class Key extends React.PureComponent { static propTypes = { - component: React.PropTypes.object.isRequired, - fetchProjectModules: React.PropTypes.func.isRequired, - changeKey: React.PropTypes.func.isRequired, - addGlobalErrorMessage: React.PropTypes.func.isRequired, - addGlobalSuccessMessage: React.PropTypes.func.isRequired, - closeAllGlobalMessages: React.PropTypes.func.isRequired + component: PropTypes.object.isRequired, + fetchProjectModules: PropTypes.func.isRequired, + changeKey: PropTypes.func.isRequired, + addGlobalErrorMessage: PropTypes.func.isRequired, + addGlobalSuccessMessage: PropTypes.func.isRequired, + closeAllGlobalMessages: PropTypes.func.isRequired }; state = { -- cgit v1.2.3