diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2022-08-25 10:45:27 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-29 20:02:53 +0000 |
commit | 06f6244b0ae2fd288e05fbdd0bd077a0da9066c4 (patch) | |
tree | 5c1cc37e9aee4859a31321b83d32eafad07f2c14 /server/sonar-web/src/main/js/apps/audit-logs | |
parent | c757692a0a8d02998bfd8839c2612e17011013a7 (diff) | |
download | sonarqube-06f6244b0ae2fd288e05fbdd0bd077a0da9066c4.tar.gz sonarqube-06f6244b0ae2fd288e05fbdd0bd077a0da9066c4.zip |
SONAR-17027 Align the way we display links (internal & external) in the UI
Diffstat (limited to 'server/sonar-web/src/main/js/apps/audit-logs')
2 files changed, 9 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx index 38901794aac..668cb99c8e4 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx @@ -21,7 +21,7 @@ import { subDays } from 'date-fns'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; import { FormattedMessage } from 'react-intl'; -import { Link } from 'react-router-dom'; +import Link from '../../../components/common/Link'; import DateRangeInput from '../../../components/controls/DateRangeInput'; import Radio from '../../../components/controls/Radio'; import Suggestions from '../../../components/embed-docs-modal/Suggestions'; diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap index fa377d15b9c..db78b925ddd 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap @@ -34,7 +34,7 @@ exports[`should render correctly for Monthly housekeeping policy 1`] = ` values={ Object { "housekeeping": "audit_logs.housekeeping_policy.Monthly", - "link": <Link + "link": <ForwardRef(Link) to={ Object { "hash": "#auditLogs", @@ -44,7 +44,7 @@ exports[`should render correctly for Monthly housekeeping policy 1`] = ` } > audit_logs.page.description.link - </Link>, + </ForwardRef(Link)>, } } /> @@ -156,7 +156,7 @@ exports[`should render correctly for Trimestrial housekeeping policy 1`] = ` values={ Object { "housekeeping": "audit_logs.housekeeping_policy.Trimestrial", - "link": <Link + "link": <ForwardRef(Link) to={ Object { "hash": "#auditLogs", @@ -166,7 +166,7 @@ exports[`should render correctly for Trimestrial housekeeping policy 1`] = ` } > audit_logs.page.description.link - </Link>, + </ForwardRef(Link)>, } } /> @@ -290,7 +290,7 @@ exports[`should render correctly for Weekly housekeeping policy 1`] = ` values={ Object { "housekeeping": "audit_logs.housekeeping_policy.Weekly", - "link": <Link + "link": <ForwardRef(Link) to={ Object { "hash": "#auditLogs", @@ -300,7 +300,7 @@ exports[`should render correctly for Weekly housekeeping policy 1`] = ` } > audit_logs.page.description.link - </Link>, + </ForwardRef(Link)>, } } /> @@ -400,7 +400,7 @@ exports[`should render correctly for Yearly housekeeping policy 1`] = ` values={ Object { "housekeeping": "audit_logs.housekeeping_policy.Yearly", - "link": <Link + "link": <ForwardRef(Link) to={ Object { "hash": "#auditLogs", @@ -410,7 +410,7 @@ exports[`should render correctly for Yearly housekeeping policy 1`] = ` } > audit_logs.page.description.link - </Link>, + </ForwardRef(Link)>, } } /> |