From bd312b70ae05b495a6f19b43b33c4321346148d1 Mon Sep 17 00:00:00 2001 From: stanislavh Date: Thu, 3 Aug 2023 11:46:53 +0200 Subject: [PATCH] SONAR-20023 Drop concise issues iist old type to reflect CCT changes --- .../issues-subnavigation/IssueItemType.tsx | 36 ------------------- .../SubnavigationIssue.tsx | 2 -- 2 files changed, 38 deletions(-) delete mode 100644 server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemType.tsx 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 && ( -- 2.39.5