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( {getTrans(
docProps.locale, docProps.locale,
"s78-section-question-1" "s78-section-question-1"
)}{" "} )}
:
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{values.caseRef} {values.caseRef}
@@ -216,8 +215,7 @@ export const finalComments_pdf = ({ docProps }) => {
{getTrans( {getTrans(
docProps.locale, docProps.locale,
"statement-representation-capacity-label" "statement-representation-capacity-label"
)} )}{" "}
:
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{values.representationCapacity} {values.representationCapacity}
@@ -266,7 +264,6 @@ export const finalComments_pdf = ({ docProps }) => {
docProps.locale, docProps.locale,
"s78-section-question-3" "s78-section-question-3"
)} )}
:
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{values.siteAddress.replace(/false/gm, " ")} {values.siteAddress.replace(/false/gm, " ")}
@@ -285,7 +282,6 @@ export const finalComments_pdf = ({ docProps }) => {
docProps.locale, docProps.locale,
"statement-case-type-label" "statement-case-type-label"
)} )}
:
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{appealTypeValue.value || ""} {appealTypeValue.value || ""}
@@ -359,20 +355,30 @@ export const finalComments_pdf = ({ docProps }) => {
<View <View
wrap={false} wrap={false}
style={{ style={{
flexDirection: "row", flexDirection: "column",
marginBottom: 10, marginBottom: 10,
}} }}
> >
<Text style={styles.questionBullet}>7.</Text> <View
<Text style={styles.questionText}> wrap={false}
{getTrans( style={{
docProps.locale, flexDirection: "row",
"statement-list-of-attached-files-label" marginBottom: 10,
)} }}
</Text> >
<Text style={styles.questionBullet}>
7.
</Text>
<Text style={styles.questionTextWide}>
{getTrans(
docProps.locale,
"statement-list-of-attached-files-label"
)}
</Text>
</View>
<View <View
style={[ style={[
styles.questionAnswer, styles.questionAnswerWide,
{ flexDirection: "column" }, { flexDirection: "column" },
]} ]}
> >
@@ -410,7 +416,6 @@ export const finalComments_pdf = ({ docProps }) => {
}} }}
> >
<Text> <Text>
{" "}
{getTrans( {getTrans(
docProps.locale, docProps.locale,
"statement-declaration-header" "statement-declaration-header"
@@ -464,7 +469,6 @@ export const finalComments_pdf = ({ docProps }) => {
</Text> </Text>
</View> </View>
</View> </View>
{values.hasOwnProperty( {values.hasOwnProperty(
"representationOnBehalfOf_details" "representationOnBehalfOf_details"
) ? ( ) ? (
@@ -493,7 +497,7 @@ export const finalComments_pdf = ({ docProps }) => {
</Text> </Text>
</View> </View>
) : ( ) : (
"" <View />
)} )}
</View> </View>
</View> </View>
+22 -15
View File
@@ -212,8 +212,7 @@ export const statement_pdf = ({ docProps }) => {
{getTrans( {getTrans(
docProps.locale, docProps.locale,
"statement-representation-capacity-label" "statement-representation-capacity-label"
)} )}{" "}
:{" "}
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{values.representationCapacity} {values.representationCapacity}
@@ -264,7 +263,7 @@ export const statement_pdf = ({ docProps }) => {
)} )}
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{values.siteAddress} {values.siteAddress.replace(/false/gm, " ")}
</Text> </Text>
</View> </View>
<View <View
@@ -280,7 +279,6 @@ export const statement_pdf = ({ docProps }) => {
docProps.locale, docProps.locale,
"statement-case-type-label" "statement-case-type-label"
)} )}
:
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswer}>
{appealTypeValue.value || ""} {appealTypeValue.value || ""}
@@ -328,7 +326,6 @@ export const statement_pdf = ({ docProps }) => {
</View> </View>
<View style={styles.questionAnswerWide}> <View style={styles.questionAnswerWide}>
<Html style={styles.richArea}> <Html style={styles.richArea}>
(
{CleanHTML( {CleanHTML(
values.representationComments values.representationComments
)} )}
@@ -355,20 +352,30 @@ export const statement_pdf = ({ docProps }) => {
<View <View
wrap={false} wrap={false}
style={{ style={{
flexDirection: "row", flexDirection: "column",
marginBottom: 10, marginBottom: 10,
}} }}
> >
<Text style={styles.questionBullet}>7.</Text> <View
<Text style={styles.questionText}> wrap={false}
{getTrans( style={{
docProps.locale, flexDirection: "row",
"statement-list-of-attached-files-label" marginBottom: 10,
)} }}
</Text> >
<Text style={styles.questionBullet}>
7.
</Text>
<Text style={styles.questionTextWide}>
{getTrans(
docProps.locale,
"statement-list-of-attached-files-label"
)}
</Text>
</View>
<View <View
style={[ style={[
styles.questionAnswer, styles.questionAnswerWide,
{ flexDirection: "column" }, { flexDirection: "column" },
]} ]}
> >
@@ -487,7 +494,7 @@ export const statement_pdf = ({ docProps }) => {
</Text> </Text>
</View> </View>
) : ( ) : (
"" <View />
)} )}
</View> </View>
</View> </View>