aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/project-admin/links
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/project-admin/links
parente8e323c872295d176016bd1dfcc3c7191b3de0e6 (diff)
downloadsonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.tar.gz
sonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.zip
update react (#2288)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/project-admin/links')
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/links/Header.js3
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/links/LinkRow.js5
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/links/Links.js5
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/links/Table.js5
4 files changed, 11 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/project-admin/links/Header.js b/server/sonar-web/src/main/js/apps/project-admin/links/Header.js
index 9173d97c1aa..34faf7a76d4 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/links/Header.js
+++ b/server/sonar-web/src/main/js/apps/project-admin/links/Header.js
@@ -18,12 +18,13 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import PropTypes from 'prop-types';
import CreationModal from './views/CreationModal';
import { translate } from '../../../helpers/l10n';
export default class Header extends React.PureComponent {
static propTypes = {
- onCreate: React.PropTypes.func.isRequired
+ onCreate: PropTypes.func.isRequired
};
handleCreateClick(e) {
diff --git a/server/sonar-web/src/main/js/apps/project-admin/links/LinkRow.js b/server/sonar-web/src/main/js/apps/project-admin/links/LinkRow.js
index 67313e188f4..ad0fcc33306 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/links/LinkRow.js
+++ b/server/sonar-web/src/main/js/apps/project-admin/links/LinkRow.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 { isProvided, isClickable } from './utils';
import { translate } from '../../../helpers/l10n';
import BugTrackerIcon from '../../../components/ui/BugTrackerIcon';
export default class LinkRow extends React.PureComponent {
static propTypes = {
- link: React.PropTypes.object.isRequired,
- onDelete: React.PropTypes.func.isRequired
+ link: PropTypes.object.isRequired,
+ onDelete: PropTypes.func.isRequired
};
handleDeleteClick(e) {
diff --git a/server/sonar-web/src/main/js/apps/project-admin/links/Links.js b/server/sonar-web/src/main/js/apps/project-admin/links/Links.js
index e06a045a9aa..fede0404e07 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/links/Links.js
+++ b/server/sonar-web/src/main/js/apps/project-admin/links/Links.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';
@@ -29,8 +30,8 @@ import { translate } from '../../../helpers/l10n';
class Links extends React.PureComponent {
static propTypes = {
- component: React.PropTypes.object.isRequired,
- links: React.PropTypes.array
+ component: PropTypes.object.isRequired,
+ links: PropTypes.array
};
componentWillMount() {
diff --git a/server/sonar-web/src/main/js/apps/project-admin/links/Table.js b/server/sonar-web/src/main/js/apps/project-admin/links/Table.js
index a7358dbb26b..acc5cf5ec96 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/links/Table.js
+++ b/server/sonar-web/src/main/js/apps/project-admin/links/Table.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 LinkRow from './LinkRow';
import { orderLinks } from './utils';
import { translate } from '../../../helpers/l10n';
export default class Table extends React.PureComponent {
static propTypes = {
- links: React.PropTypes.array.isRequired,
- onDelete: React.PropTypes.func.isRequired
+ links: PropTypes.array.isRequired,
+ onDelete: PropTypes.func.isRequired
};
handleDeleteLink(link) {