From: Revanshu Paliwal Date: Thu, 19 Oct 2023 14:54:11 +0000 (+0200) Subject: SONAR-20814 Migrating project new code header to new UI X-Git-Tag: 10.3.0.82913~95 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b2ad543c2d1ded25f7abdf72b1bdd853148c04e0;p=sonarqube.git SONAR-20814 Migrating project new code header to new UI --- diff --git a/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx b/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx index dbb6c2063aa..832b657ac30 100644 --- a/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx +++ b/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx @@ -17,10 +17,10 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { Link, Title } from 'design-system'; import * as React from 'react'; import { FormattedMessage } from 'react-intl'; -import DocLink from '../../../components/common/DocLink'; -import Link from '../../../components/common/Link'; +import { useDocUrl } from '../../../helpers/docs'; import { translate } from '../../../helpers/l10n'; export interface AppHeaderProps { @@ -29,10 +29,11 @@ export interface AppHeaderProps { export default function AppHeader(props: AppHeaderProps) { const { canAdmin } = props; + const toUrl = useDocUrl('/project-administration/defining-new-code/'); return ( -
-

{translate('project_baseline.page')}

+
+ {translate('project_baseline.page')}

{translate('project_baseline.page.description')}

{translate('settings.new_code_period.description1')}

@@ -56,11 +57,7 @@ export default function AppHeader(props: AppHeaderProps) { defaultMessage={translate('settings.new_code_period.description3')} id="settings.new_code_period.description3" values={{ - link: ( - - {translate('settings.new_code_period.description3.link')} - - ), + link: {translate('settings.new_code_period.description3.link')}, }} />