From 365adc8eea61b479e5fd1d2facda26ed15da3b77 Mon Sep 17 00:00:00 2001 From: guillaume-peoch-sonarsource Date: Mon, 9 Jan 2023 16:55:12 +0100 Subject: [PATCH] SONAR-16556 Do not open rule panel or issues under Project > Measures / Code tabs --- .../issue/components/IssueMessage.tsx | 2 +- .../__snapshots__/IssueMessage-test.tsx.snap | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx index d60dd94ec08..9e7f9049ddb 100644 --- a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx +++ b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx @@ -18,13 +18,13 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { Link } from 'react-router-dom'; import { getBranchLikeQuery } from '../../../helpers/branch-like'; import { translate } from '../../../helpers/l10n'; import { getComponentIssuesUrl } from '../../../helpers/urls'; import { BranchLike } from '../../../types/branch-like'; import { RuleStatus } from '../../../types/rules'; import { Issue } from '../../../types/types'; +import Link from '../../common/Link'; import { IssueMessageHighlighting } from '../IssueMessageHighlighting'; import IssueMessageTags from './IssueMessageTags'; diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap index bff0c5c5ab9..22c41aacb22 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap @@ -14,7 +14,7 @@ exports[`should render correctly: default 1`] = ` - issue.why_this_issue - + `; @@ -64,7 +64,7 @@ exports[`should render correctly: is deprecated rule 1`] = ` ruleStatus="DEPRECATED" /> - issue.why_this_issue - + `; @@ -97,7 +97,7 @@ exports[`should render correctly: is removed rule 1`] = ` ruleStatus="REMOVED" /> - issue.why_this_issue - + `; @@ -130,7 +130,7 @@ exports[`should render correctly: with engine info 1`] = ` engine="js" /> - issue.why_this_issue - + `; @@ -163,7 +163,7 @@ exports[`should render correctly: with quick fix 1`] = ` quickFixAvailable={true} /> - issue.why_this_issue - + `; -- 2.39.5