copy changes from review
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user