From 952890a67ed15b7d63e64ea4383a43f44e33b442 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Thu, 8 Nov 2018 14:42:56 +0100 Subject: [PATCH] SONARCLOUD-45 Fix featured projects link --- .../sonarcloud/components/FeaturedProjects.tsx | 7 +++---- .../__snapshots__/FeaturedProjects-test.tsx.snap | 16 +++------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/components/FeaturedProjects.tsx b/server/sonar-web/src/main/js/apps/about/sonarcloud/components/FeaturedProjects.tsx index b14ef2a375a..7dbcd7ec7aa 100644 --- a/server/sonar-web/src/main/js/apps/about/sonarcloud/components/FeaturedProjects.tsx +++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/components/FeaturedProjects.tsx @@ -21,7 +21,6 @@ import * as React from 'react'; import * as classNames from 'classnames'; import CountUp from 'react-countup'; import { throttle } from 'lodash'; -import { Link } from 'react-router'; import { FeaturedProject } from '../utils'; import CoverageRating from '../../../../components/ui/CoverageRating'; import DuplicationsRating from '../../../../components/ui/DuplicationsRating'; @@ -31,7 +30,7 @@ import ProjectCardLanguagesContainer from '../../../projects/components/ProjectC import Rating from '../../../../components/ui/Rating'; import { formatMeasure } from '../../../../helpers/measures'; import { getMetricName } from '../../../overview/utils'; -import { getProjectUrl, getBaseUrl } from '../../../../helpers/urls'; +import { getProjectUrl, getBaseUrl, getPathUrlAsString } from '../../../../helpers/urls'; import './FeaturedProjects.css'; interface Props { @@ -182,7 +181,7 @@ interface ProjectCardProps { export function ProjectCard({ project, order, viewable }: ProjectCardProps) { return (
- +
- +
); } diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/__snapshots__/FeaturedProjects-test.tsx.snap b/server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/__snapshots__/FeaturedProjects-test.tsx.snap index 0f9e28d22ff..36862944aad 100644 --- a/server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/__snapshots__/FeaturedProjects-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/components/__tests__/__snapshots__/FeaturedProjects-test.tsx.snap @@ -9,19 +9,9 @@ exports[`should render ProjectCard correctly 1`] = ` } } > -
- + `; -- 2.39.5