Merged PR 1113: updated pdf for tenants array

updated pdf for tenants array

Related work items: #10708
This commit is contained in:
Robert Bond
2024-03-28 10:02:30 +00:00
+44 -36
View File
@@ -464,44 +464,52 @@ export const AppealRow_pdf = (props) => {
marginBottom: 10,
}}
>
{props.props[
{props.props.hasOwnProperty(
datafieldname[0].value
].map((tenant, index) => {
return (
<View
key={index}
style={{
flexDirection:
"row",
marginBottom: 10,
}}
>
<Text
style={{
width: "50%",
paddingRight:
"20",
}}
>
{
tenant.pinswg_agriculturaltenantname
}
</Text>
) &&
props.props[
datafieldname[0]
.value
].map(
(tenant, index) => {
return (
<View
key={
index
}
style={{
flexDirection:
"row",
marginBottom: 10,
}}
>
<Text
style={{
width: "50%",
paddingRight:
"20",
}}
>
{
tenant.pinswg_agriculturaltenantname
}
</Text>
<Text
style={{
width: "40%",
}}
>
Notice
served:{" "}
{formatDate(
tenant.dateserved
)}
</Text>
</View>
);
})}
<Text
style={{
width: "40%",
}}
>
Notice
served:{" "}
{formatDate(
tenant.dateserved
)}
</Text>
</View>
);
}
)}
</View>
</View>
</View>