From 1d4b45c8b37cc57c8577744df7adc3de0afc945f Mon Sep 17 00:00:00 2001 From: Viktor Vorona Date: Fri, 23 Aug 2024 15:49:17 +0200 Subject: SONAR-22728 Change Activity Split line text --- .../src/main/js/components/charts/SplitLinePopover.tsx | 2 +- .../src/main/js/components/common/DocumentationLink.tsx | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'server') diff --git a/server/sonar-web/src/main/js/components/charts/SplitLinePopover.tsx b/server/sonar-web/src/main/js/components/charts/SplitLinePopover.tsx index 3d29dc59f22..5fab13951de 100644 --- a/server/sonar-web/src/main/js/components/charts/SplitLinePopover.tsx +++ b/server/sonar-web/src/main/js/components/charts/SplitLinePopover.tsx @@ -45,7 +45,7 @@ export default function SplitLinePopover({ paddingLeft, splitPointDate, xScale } title={translate('project_activity.graphs.rating_split.title')} description={translate('project_activity.graphs.rating_split.description')} footer={ - + {translate('learn_more')} } diff --git a/server/sonar-web/src/main/js/components/common/DocumentationLink.tsx b/server/sonar-web/src/main/js/components/common/DocumentationLink.tsx index 1942843ef1f..b95aeeb4688 100644 --- a/server/sonar-web/src/main/js/components/common/DocumentationLink.tsx +++ b/server/sonar-web/src/main/js/components/common/DocumentationLink.tsx @@ -18,15 +18,23 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { Link, LinkProps } from '@sonarsource/echoes-react'; +import { Link, LinkProps, LinkStandalone } from '@sonarsource/echoes-react'; import * as React from 'react'; import { DocLink } from '../../helpers/doc-links'; import { useDocUrl } from '../../helpers/docs'; -type Props = Omit & { innerRef?: React.Ref; to: DocLink }; +type Props = Omit & { + innerRef?: React.Ref; + standalone?: boolean; + to: DocLink; +}; -export default function DocumentationLink({ to, innerRef, ...props }: Props) { +export default function DocumentationLink({ to, innerRef, standalone = false, ...props }: Props) { const toStatic = useDocUrl(to); - return ; + return standalone ? ( + + ) : ( + + ); } -- cgit v1.2.3