aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
diff options
context:
space:
mode:
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>2022-01-27 11:06:59 +0100
committersonartech <sonartech@sonarsource.com>2022-01-27 20:03:05 +0000
commitdca8354af94e9feb46ea2312857e000aaa232372 (patch)
tree336b645749ab1fb1b1abdac19a69c70257e98b68 /server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
parent85f744be340d8f404978341186dd77cc05584f31 (diff)
downloadsonarqube-dca8354af94e9feb46ea2312857e000aaa232372.tar.gz
sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.zip
SONAR-15945 Get rid of T namespace in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx16
1 files changed, 7 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx b/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
index 9ab00c04736..ecf8a51dcb5 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
+++ b/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
@@ -49,6 +49,7 @@ import { ComponentQualifier } from '../../../types/component';
import { MetricKey } from '../../../types/metrics';
import { GraphType, MeasureHistory } from '../../../types/project-activity';
import { QualityGateStatus, QualityGateStatusCondition } from '../../../types/quality-gates';
+import { Analysis, Component, MeasureEnhanced, Metric, Period } from '../../../types/types';
import '../styles.css';
import { HISTORY_METRICS_LIST, METRICS } from '../utils';
import BranchOverviewRenderer from './BranchOverviewRenderer';
@@ -56,21 +57,21 @@ import BranchOverviewRenderer from './BranchOverviewRenderer';
interface Props {
branch?: Branch;
branchesEnabled?: boolean;
- component: T.Component;
+ component: Component;
projectBinding?: ProjectAlmBindingResponse;
}
interface State {
- analyses?: T.Analysis[];
+ analyses?: Analysis[];
appLeak?: ApplicationPeriod;
detectedCIOnLastAnalysis?: boolean;
graph: GraphType;
loadingHistory?: boolean;
loadingStatus?: boolean;
- measures?: T.MeasureEnhanced[];
+ measures?: MeasureEnhanced[];
measuresHistory?: MeasureHistory[];
- metrics?: T.Metric[];
- period?: T.Period;
+ metrics?: Metric[];
+ period?: Period;
qgStatuses?: QualityGateStatus[];
}
@@ -348,10 +349,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
);
};
- getFailedConditions = (
- conditions: QualityGateStatusCondition[],
- measures: T.MeasureEnhanced[]
- ) => {
+ getFailedConditions = (conditions: QualityGateStatusCondition[], measures: MeasureEnhanced[]) => {
return (
conditions
.filter(c => c.level !== 'OK')