copy changes from review

This commit is contained in:
2024-08-09 13:14:54 +01:00
parent fd1d38c3ba
commit 795dc5a39d
16 changed files with 73 additions and 35 deletions
+12 -3
View File
@@ -177,7 +177,6 @@ const RenderRadio = ({
}) => {
let { t } = useTranslation();
const required = (value) => (value ? undefined : "Required");
return (
<>
<div
@@ -190,9 +189,19 @@ const RenderRadio = ({
<fieldset className="govuk-fieldset">
<legend className="govuk-fieldset__legend govuk-fieldset__legend--s govuk-!-font-weight-regular">
{label}
{(custom.hint != false || custom.hint != undefined) && (
{custom.hint != undefined && (
<div className="govuk-hint govuk-!-margin-top-4 govuk-!-font-size-16">
{custom.hint}
{custom.hint.indexOf("{{p}}") < 0 ? (
<p>{custom.hint}</p>
) : (
<>
<p className="govuk-body-m">
{custom.hint.split("{{p}}")[0]}
<br />
{custom.hint.split("{{p}}")[1]}
</p>
</>
)}
</div>
)}
</legend>