From: stanislavh Date: Thu, 3 Aug 2023 09:46:53 +0000 (+0200) Subject: SONAR-20023 Drop concise issues iist old type to reflect CCT changes X-Git-Tag: 10.2.0.77647~199 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd312b70ae05b495a6f19b43b33c4321346148d1;p=sonarqube.git SONAR-20023 Drop concise issues iist old type to reflect CCT changes --- diff --git a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemType.tsx b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemType.tsx deleted file mode 100644 index bb530deeb6f..00000000000 --- a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemType.tsx +++ /dev/null @@ -1,36 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2023 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -import React from 'react'; -import IssueTypeIcon from '../../../components/icon-mappers/IssueTypeIcon'; -import { translate } from '../../../helpers/l10n'; -import { Issue } from '../../../types/types'; - -interface Props { - issue: Pick; -} - -export default function IssueItemType(props: Props) { - return ( - - - {translate('issue.type', props.issue.type)} - - ); -} diff --git a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/SubnavigationIssue.tsx b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/SubnavigationIssue.tsx index 7571092038c..5ae7f0a9bf9 100644 --- a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/SubnavigationIssue.tsx +++ b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/SubnavigationIssue.tsx @@ -23,7 +23,6 @@ import { noop } from 'lodash'; import * as React from 'react'; import { Issue } from '../../../types/types'; import IssueItemLocationsQuantity from './IssueItemLocationsQuantity'; -import IssueItemType from './IssueItemType'; import IssueLocationsNavigator from './IssueLocationsNavigator'; const HALF_DIVIDER = 2; @@ -64,7 +63,6 @@ export default function SubnavigationIssue(props: ConciseIssueProps) { {issue.message} - {selected && (