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) --- .../main/js/apps/settings/encryption/EncryptionApp.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/settings/encryption/EncryptionApp.js') diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionApp.js b/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionApp.js index 9b769007425..e9f59b8c2df 100644 --- a/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionApp.js +++ b/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionApp.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 GenerateSecretKeyForm from './GenerateSecretKeyForm'; import EncryptionForm from './EncryptionForm'; @@ -25,15 +26,15 @@ import { translate } from '../../../helpers/l10n'; export default class EncryptionApp extends React.PureComponent { static propTypes = { - loading: React.PropTypes.bool.isRequired, - secretKeyAvailable: React.PropTypes.bool, - secretKey: React.PropTypes.string, - encryptedValue: React.PropTypes.string, + loading: PropTypes.bool.isRequired, + secretKeyAvailable: PropTypes.bool, + secretKey: PropTypes.string, + encryptedValue: PropTypes.string, - checkSecretKey: React.PropTypes.func.isRequired, - generateSecretKey: React.PropTypes.func.isRequired, - encryptValue: React.PropTypes.func.isRequired, - startGeneration: React.PropTypes.func.isRequired + checkSecretKey: PropTypes.func.isRequired, + generateSecretKey: PropTypes.func.isRequired, + encryptValue: PropTypes.func.isRequired, + startGeneration: PropTypes.func.isRequired }; componentDidMount() { -- cgit v1.2.3