From 06f6244b0ae2fd288e05fbdd0bd077a0da9066c4 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Thu, 25 Aug 2022 10:45:27 +0200 Subject: SONAR-17027 Align the way we display links (internal & external) in the UI --- server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx | 2 +- .../shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'server/sonar-web/src/main/js/components/shared') diff --git a/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx b/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx index def276b3bee..7d7a6bf9740 100644 --- a/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx +++ b/server/sonar-web/src/main/js/components/shared/DrilldownLink.tsx @@ -18,12 +18,12 @@ * 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 { getComponentDrilldownUrl, getComponentIssuesUrl } from '../../helpers/urls'; import { BranchLike } from '../../types/branch-like'; import { MetricKey } from '../../types/metrics'; import { Dict } from '../../types/types'; +import Link from '../common/Link'; const ISSUE_MEASURES = [ MetricKey.violations, diff --git a/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap b/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap index e09cd6d4cd1..df74dc65e71 100644 --- a/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`should render correctly 1`] = ` - label - + `; exports[`should render issuesLink correctly 1`] = ` - label - + `; -- cgit v1.2.3