Merged PR 2329: welsh link for events

welsh link for events

Related work items: #23054
This commit is contained in:
Robert Bond
2026-05-18 08:50:58 +00:00
parent 5967665138
commit b6bd543527
7 changed files with 14 additions and 5 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
import useTranslation from "next-translate/useTranslation";
import { getLivePublishedEvent } from "../case/summary/utils/liveEvent";
const LiveLink = ({ detailsObj }) => {
const LiveLink = ({ detailsObj, locale }) => {
let { t } = useTranslation();
const eventsObj = {
@@ -15,7 +15,11 @@ const LiveLink = ({ detailsObj }) => {
return (
<div className="govuk-!-margin-top-3">
<a
href={liveEvent.pinswg_linktotheevent}
href={
locale === "en"
? liveEvent.pinswg_linktotheevent
: liveEvent.pinswg_linktotheeventstreamwelsh
}
className="govuk-link"
target="_blank"
rel="noopener noreferrer"