aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/settings/licenses
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-07-25 13:18:52 +0200
committerGitHub <noreply@github.com>2017-07-25 13:18:52 +0200
commite561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56 (patch)
tree594be45f13149d274e252d2a844733a12a25dc5b /server/sonar-web/src/main/js/apps/settings/licenses
parente8e323c872295d176016bd1dfcc3c7191b3de0e6 (diff)
downloadsonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.tar.gz
sonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.zip
update react (#2288)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/licenses')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/licenses/LicenseChangeForm.js5
-rw-r--r--server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js5
-rw-r--r--server/sonar-web/src/main/js/apps/settings/licenses/LicenseStatus.js3
-rw-r--r--server/sonar-web/src/main/js/apps/settings/licenses/LicensesList.js5
4 files changed, 11 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseChangeForm.js b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseChangeForm.js
index b9b6c56b737..36fa5ff8a70 100644
--- a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseChangeForm.js
+++ b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseChangeForm.js
@@ -18,13 +18,14 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import PropTypes from 'prop-types';
import Modal from 'react-modal';
import { translate, translateWithParameters } from '../../../helpers/l10n';
export default class LicenseChangeForm extends React.PureComponent {
static propTypes = {
- license: React.PropTypes.object.isRequired,
- onChange: React.PropTypes.func.isRequired
+ license: PropTypes.object.isRequired,
+ onChange: PropTypes.func.isRequired
};
state = {
diff --git a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
index 277d8a4c636..f8ef6d4c7f0 100644
--- a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
+++ b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
@@ -18,14 +18,15 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import PropTypes from 'prop-types';
import moment from 'moment';
import LicenseStatus from './LicenseStatus';
import LicenseChangeForm from './LicenseChangeForm';
export default class LicenseRow extends React.PureComponent {
static propTypes = {
- license: React.PropTypes.object.isRequired,
- setLicense: React.PropTypes.func.isRequired
+ license: PropTypes.object.isRequired,
+ setLicense: PropTypes.func.isRequired
};
handleSet = value => this.props.setLicense(this.props.license.key, value);
diff --git a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseStatus.js b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseStatus.js
index 086fb5f4eb0..5f77eeeb718 100644
--- a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseStatus.js
+++ b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseStatus.js
@@ -18,11 +18,12 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import PropTypes from 'prop-types';
import { isLicenseInvalid } from './licenseUtils';
export default class LicenseStatus extends React.PureComponent {
static propTypes = {
- license: React.PropTypes.object.isRequired
+ license: PropTypes.object.isRequired
};
render() {
diff --git a/server/sonar-web/src/main/js/apps/settings/licenses/LicensesList.js b/server/sonar-web/src/main/js/apps/settings/licenses/LicensesList.js
index 9104cd830ee..91fcdcb1889 100644
--- a/server/sonar-web/src/main/js/apps/settings/licenses/LicensesList.js
+++ b/server/sonar-web/src/main/js/apps/settings/licenses/LicensesList.js
@@ -18,13 +18,14 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import PropTypes from 'prop-types';
import LicenseRowContainer from './LicenseRowContainer';
import { translate } from '../../../helpers/l10n';
export default class LicensesList extends React.PureComponent {
static propTypes = {
- licenses: React.PropTypes.array.isRequired,
- fetchLicenses: React.PropTypes.func.isRequired
+ licenses: PropTypes.array.isRequired,
+ fetchLicenses: PropTypes.func.isRequired
};
componentDidMount() {