]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20023 Drop concise issues iist old type to reflect CCT changes
authorstanislavh <stanislav.honcharov@sonarsource.com>
Thu, 3 Aug 2023 09:46:53 +0000 (11:46 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 18 Aug 2023 20:02:48 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemType.tsx [deleted file]
server/sonar-web/src/main/js/apps/issues/issues-subnavigation/SubnavigationIssue.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 (file)
index bb530de..0000000
+++ /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<Issue, 'type'>;
-}
-
-export default function IssueItemType(props: Props) {
-  return (
-    <span className="sw-flex sw-items-center sw-gap-1">
-      <IssueTypeIcon type={props.issue.type} />
-      {translate('issue.type', props.issue.type)}
-    </span>
-  );
-}
index 7571092038cabde2bab384c1a469bed7773733a4..5ae7f0a9bf95f2da10fb56499cda690fa9a3eda3 100644 (file)
@@ -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}
           </StyledIssueTitle>
           <IssueInfo className="sw-flex sw-justify-between sw-gap-2">
-            <IssueItemType issue={issue} />
             <IssueItemLocationsQuantity issue={issue} />
           </IssueInfo>
           {selected && (