aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx20
1 files changed, 6 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx
index 570ddbe075f..47652952ec2 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx
@@ -38,7 +38,7 @@ export default function ProjectCardLeakMeasures({ measures }: Props) {
<Measure
className="spacer-right"
measure={{
- metric: { key: 'new_bugs', name: 'new_bugs', type: 'SHORT_INT' },
+ metric: { key: 'new_bugs', type: 'SHORT_INT' },
leak: measures['new_bugs']
}}
/>
@@ -57,11 +57,7 @@ export default function ProjectCardLeakMeasures({ measures }: Props) {
<Measure
className="spacer-right"
measure={{
- metric: {
- key: 'new_vulnerabilities',
- name: 'new_vulnerabilities',
- type: 'SHORT_INT'
- },
+ metric: { key: 'new_vulnerabilities', type: 'SHORT_INT' },
leak: measures['new_vulnerabilities']
}}
/>
@@ -80,7 +76,7 @@ export default function ProjectCardLeakMeasures({ measures }: Props) {
<Measure
className="spacer-right"
measure={{
- metric: { key: 'new_code_smells', name: 'new_code_smells', type: 'SHORT_INT' },
+ metric: { key: 'new_code_smells', type: 'SHORT_INT' },
leak: measures['new_code_smells']
}}
/>
@@ -98,7 +94,7 @@ export default function ProjectCardLeakMeasures({ measures }: Props) {
<div className="project-card-measure-number">
<Measure
measure={{
- metric: { key: 'new_coverage', name: 'new_coverage', type: 'PERCENT' },
+ metric: { key: 'new_coverage', type: 'PERCENT' },
leak: measures['new_coverage']
}}
/>
@@ -112,11 +108,7 @@ export default function ProjectCardLeakMeasures({ measures }: Props) {
<div className="project-card-measure-number">
<Measure
measure={{
- metric: {
- key: 'new_duplicated_lines_density',
- name: 'new_duplicated_lines_density',
- type: 'PERCENT'
- },
+ metric: { key: 'new_duplicated_lines_density', type: 'PERCENT' },
leak: measures['new_duplicated_lines_density']
}}
/>
@@ -132,7 +124,7 @@ export default function ProjectCardLeakMeasures({ measures }: Props) {
<div className="project-card-measure-number">
<Measure
measure={{
- metric: { key: 'new_lines', name: 'new_lines', type: 'SHORT_INT' },
+ metric: { key: 'new_lines', type: 'SHORT_INT' },
leak: measures['new_lines']
}}
/>