Merged PR 2329: welsh link for events
welsh link for events Related work items: #23054
This commit is contained in:
@@ -396,7 +396,9 @@ const CaseSummary = (props) => {
|
||||
|
||||
<a
|
||||
href={
|
||||
livePublishedEvent.pinswg_linktotheevent
|
||||
locale === "en"
|
||||
? livePublishedEvent.pinswg_linktotheevent
|
||||
: livePublishedEvent.pinswg_linktotheeventstreamwelsh
|
||||
}
|
||||
className="govuk-link govuk-link--no-visited-state"
|
||||
target="_blank"
|
||||
|
||||
@@ -400,6 +400,7 @@ const SearchResults = (props) => {
|
||||
appealType={
|
||||
item.pinswg_appealcasetype
|
||||
}
|
||||
locale={locale}
|
||||
/>
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-16">
|
||||
|
||||
@@ -476,6 +476,7 @@ const DNSSearchResults = (props) => {
|
||||
appealType={
|
||||
item.pinswg_appealcasetype
|
||||
}
|
||||
locale={locale}
|
||||
/>
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-16">
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -486,6 +486,7 @@ const SearchResults = (props) => {
|
||||
appealType={
|
||||
item.pinswg_appealcasetype
|
||||
}
|
||||
locale={locale}
|
||||
/>
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-16">
|
||||
|
||||
Reference in New Issue
Block a user