aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-12-05 17:32:18 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-05 20:20:59 +0100
commit41c98779d38bda9fdfdca182a5f20c73fcff9a84 (patch)
treed895a9f8bfd0276aee5ffacf7bb33a0109436cbd /server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx
parenta9c22c1185c5fd8c8dc4c9388f4a3b967e3f463d (diff)
downloadsonarqube-41c98779d38bda9fdfdca182a5f20c73fcff9a84.tar.gz
sonarqube-41c98779d38bda9fdfdca182a5f20c73fcff9a84.zip
create global type definitions (#1017)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx b/server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx
index 7d2630cba14..9ca2a8f6906 100644
--- a/server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx
+++ b/server/sonar-web/src/main/js/apps/projectLinks/LinkRow.tsx
@@ -19,19 +19,18 @@
*/
import * as React from 'react';
import { isProvided, getLinkName } from './utils';
-import { ProjectLink } from '../../app/types';
import ConfirmButton from '../../components/controls/ConfirmButton';
import ProjectLinkIcon from '../../components/icons-components/ProjectLinkIcon';
import { Button } from '../../components/ui/buttons';
import { translate, translateWithParameters } from '../../helpers/l10n';
interface Props {
- link: ProjectLink;
+ link: T.ProjectLink;
onDelete: (linkId: string) => Promise<void>;
}
export default class LinkRow extends React.PureComponent<Props> {
- renderNameForProvided = (link: ProjectLink) => {
+ renderNameForProvided = (link: T.ProjectLink) => {
return (
<div className="display-inline-block text-top">
<div>
@@ -44,7 +43,7 @@ export default class LinkRow extends React.PureComponent<Props> {
);
};
- renderName = (link: ProjectLink) => {
+ renderName = (link: T.ProjectLink) => {
return (
<div>
<ProjectLinkIcon className="little-spacer-right" type={link.type} />
@@ -59,7 +58,7 @@ export default class LinkRow extends React.PureComponent<Props> {
);
};
- renderDeleteButton = (link: ProjectLink) => {
+ renderDeleteButton = (link: T.ProjectLink) => {
if (isProvided(link)) {
return null;
}