questionnaire defect 22 and 9

This commit is contained in:
2025-01-07 08:01:25 +00:00
parent 29d8090630
commit 086942df7a
3 changed files with 11 additions and 5 deletions
@@ -367,8 +367,7 @@ export const RenderLPACondtionalRadioList = ({
...custom
}) => {
const required = (value) => (value ? undefined : "Required");
//console.log(error);
let { t } = useTranslation();
return (
<>
@@ -401,7 +400,12 @@ export const RenderLPACondtionalRadioList = ({
</label>
</legend>
<div id={id + "-hint"} className="govuk-hint"></div>
{typeof custom.hint != undefined && (
<div id={id + "-hint"} className="govuk-hint">
{t(custom.hint)}
</div>
)}
<div className="govuk-radios govuk-radios--small">
{Object.keys(options).map((key, index) => (
<div key={key} className="govuk-!-margin-bottom-3">
@@ -814,6 +814,7 @@ let S78_Questionnaire = (props) => {
legend={t(
"myrepresentations:s78-section-question-27"
)}
hint={t("myrepresentations:s78-footnote-two")}
conditionalLabel={t(
"myrepresentations:s78-section-question-27-hint"
)}
@@ -866,6 +867,7 @@ let S78_Questionnaire = (props) => {
legend={t(
"myrepresentations:s78-section-question-29"
)}
hint={t("myrepresentations:s78-footnote-one")}
conditionalLabel={t(
"myrepresentations:s78-section-question-29-hint"
)}