pdf fixes

This commit is contained in:
2025-01-13 14:27:28 +00:00
parent 42940ebaa6
commit 85f88eb074
2 changed files with 44 additions and 33 deletions
+22 -18
View File
@@ -197,8 +197,7 @@ export const finalComments_pdf = ({ docProps }) => {
{getTrans(
docProps.locale,
"s78-section-question-1"
)}{" "}
:
)}
</Text>
<Text style={styles.questionAnswer}>
{values.caseRef}
@@ -216,8 +215,7 @@ export const finalComments_pdf = ({ docProps }) => {
{getTrans(
docProps.locale,
"statement-representation-capacity-label"
)}
:
)}{" "}
</Text>
<Text style={styles.questionAnswer}>
{values.representationCapacity}
@@ -266,7 +264,6 @@ export const finalComments_pdf = ({ docProps }) => {
docProps.locale,
"s78-section-question-3"
)}
:
</Text>
<Text style={styles.questionAnswer}>
{values.siteAddress.replace(/false/gm, " ")}
@@ -285,7 +282,6 @@ export const finalComments_pdf = ({ docProps }) => {
docProps.locale,
"statement-case-type-label"
)}
:
</Text>
<Text style={styles.questionAnswer}>
{appealTypeValue.value || ""}
@@ -359,20 +355,30 @@ export const finalComments_pdf = ({ docProps }) => {
<View
wrap={false}
style={{
flexDirection: "row",
flexDirection: "column",
marginBottom: 10,
}}
>
<Text style={styles.questionBullet}>7.</Text>
<Text style={styles.questionText}>
{getTrans(
docProps.locale,
"statement-list-of-attached-files-label"
)}
</Text>
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<Text style={styles.questionBullet}>
7.
</Text>
<Text style={styles.questionTextWide}>
{getTrans(
docProps.locale,
"statement-list-of-attached-files-label"
)}
</Text>
</View>
<View
style={[
styles.questionAnswer,
styles.questionAnswerWide,
{ flexDirection: "column" },
]}
>
@@ -410,7 +416,6 @@ export const finalComments_pdf = ({ docProps }) => {
}}
>
<Text>
{" "}
{getTrans(
docProps.locale,
"statement-declaration-header"
@@ -464,7 +469,6 @@ export const finalComments_pdf = ({ docProps }) => {
</Text>
</View>
</View>
{values.hasOwnProperty(
"representationOnBehalfOf_details"
) ? (
@@ -493,7 +497,7 @@ export const finalComments_pdf = ({ docProps }) => {
</Text>
</View>
) : (
""
<View />
)}
</View>
</View>
+22 -15
View File
@@ -212,8 +212,7 @@ export const statement_pdf = ({ docProps }) => {
{getTrans(
docProps.locale,
"statement-representation-capacity-label"
)}
:{" "}
)}{" "}
</Text>
<Text style={styles.questionAnswer}>
{values.representationCapacity}
@@ -264,7 +263,7 @@ export const statement_pdf = ({ docProps }) => {
)}
</Text>
<Text style={styles.questionAnswer}>
{values.siteAddress}
{values.siteAddress.replace(/false/gm, " ")}
</Text>
</View>
<View
@@ -280,7 +279,6 @@ export const statement_pdf = ({ docProps }) => {
docProps.locale,
"statement-case-type-label"
)}
:
</Text>
<Text style={styles.questionAnswer}>
{appealTypeValue.value || ""}
@@ -328,7 +326,6 @@ export const statement_pdf = ({ docProps }) => {
</View>
<View style={styles.questionAnswerWide}>
<Html style={styles.richArea}>
(
{CleanHTML(
values.representationComments
)}
@@ -355,20 +352,30 @@ export const statement_pdf = ({ docProps }) => {
<View
wrap={false}
style={{
flexDirection: "row",
flexDirection: "column",
marginBottom: 10,
}}
>
<Text style={styles.questionBullet}>7.</Text>
<Text style={styles.questionText}>
{getTrans(
docProps.locale,
"statement-list-of-attached-files-label"
)}
</Text>
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<Text style={styles.questionBullet}>
7.
</Text>
<Text style={styles.questionTextWide}>
{getTrans(
docProps.locale,
"statement-list-of-attached-files-label"
)}
</Text>
</View>
<View
style={[
styles.questionAnswer,
styles.questionAnswerWide,
{ flexDirection: "column" },
]}
>
@@ -487,7 +494,7 @@ export const statement_pdf = ({ docProps }) => {
</Text>
</View>
) : (
""
<View />
)}
</View>
</View>