diff options
author | philippe-perrin-sonarsource <philippe.perrin@sonarsource.com> | 2022-01-27 11:06:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-01-27 20:03:05 +0000 |
commit | dca8354af94e9feb46ea2312857e000aaa232372 (patch) | |
tree | 336b645749ab1fb1b1abdac19a69c70257e98b68 /server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx | |
parent | 85f744be340d8f404978341186dd77cc05584f31 (diff) | |
download | sonarqube-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.tsx | 16 |
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') |