added tenant fieldarray and date ranges

This commit is contained in:
2024-03-20 10:56:42 +00:00
parent 7c09367be4
commit dc933087d2
14 changed files with 268 additions and 41 deletions
+30
View File
@@ -10,6 +10,7 @@ import {
getFormCollectionByID,
getPickListLabel,
getRadioLabel,
getFieldArrayLabel,
} from "../../components/utils";
import {
@@ -169,6 +170,35 @@ let BuildCheckRow = (props) => {
: fieldtype[0].value ==
"{16D63FD6-119B-4353-BDCA-18358721C3FE}"
? "ssss"
: fieldtype[0].value ==
"{0273EDBD-AC1D-40d3-9FB2-095C621B552D}"
? props.props.form[
"appealForm"
].values[
datafieldname[0].value
].map((tenant, index) => {
return (
<div
key={index}
style={{
display:
"flex",
}}
>
<div className="govuk-!-width-one-half">
{
tenant.pinswg_agriculturaltenantname
}
</div>
<div className="govuk-!-width-one-half">
Served:{" "}
{formatDate(
tenant.dateserved
)}
</div>
</div>
);
})
: props.props.form["appealForm"]
.values[
datafieldname[0].value