diff options
author | stanislavh <stanislav.honcharov@sonarsource.com> | 2024-01-26 13:54:12 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-01-29 20:03:16 +0000 |
commit | ec89bff4f8bbe324bf9a4f48cd137e192c283d30 (patch) | |
tree | ebf119a11db03768415f9884d9e8cb2476a08ae1 /server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx | |
parent | 9234a58514677a11b4ed680af855e22cd5d538ce (diff) | |
download | sonarqube-ec89bff4f8bbe324bf9a4f48cd137e192c283d30.tar.gz sonarqube-ec89bff4f8bbe324bf9a4f48cd137e192c283d30.zip |
SONAR-21467 Implement new Tabs component
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx b/server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx index 1f73d4099e0..6c6b6c541e0 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx +++ b/server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanel.tsx @@ -19,13 +19,14 @@ */ import { Card, CoverageIndicator, DuplicationsIndicator } from 'design-system'; import * as React from 'react'; +import { getTabPanelId } from '../../../components/controls/BoxedTabs'; import { duplicationRatingConverter } from '../../../components/measure/utils'; import { findMeasure } from '../../../helpers/measures'; import { Branch } from '../../../types/branch-like'; import { IssueType } from '../../../types/issues'; import { MetricKey } from '../../../types/metrics'; import { Component, MeasureEnhanced } from '../../../types/types'; -import { MeasurementType } from '../utils'; +import { MeasurementType, MeasuresTabs } from '../utils'; import MeasuresPanelIssueMeasure from './MeasuresPanelIssueMeasure'; import MeasuresPanelPercentMeasure from './MeasuresPanelPercentMeasure'; @@ -40,7 +41,10 @@ export function MeasuresPanel(props: MeasuresPanelProps) { const { branch, component, measures, isNewCode } = props; return ( - <div className="sw-grid sw-grid-cols-2 sw-gap-4 sw-mt-4"> + <div + className="sw-grid sw-grid-cols-2 sw-gap-4 sw-mt-6" + id={getTabPanelId(MeasuresTabs.Overall)} + > {[IssueType.Bug, IssueType.CodeSmell, IssueType.Vulnerability, IssueType.SecurityHotspot].map( (type: IssueType) => ( <Card key={type} className="sw-p-8"> |