questionnaire defect 60.55,59,57

This commit is contained in:
2025-01-15 11:30:58 +00:00
parent 49418becf2
commit 33ab93643d
9 changed files with 154 additions and 245 deletions
+4 -1
View File
@@ -158,7 +158,10 @@ export const AppealRow_pdf = (props) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;
+4 -1
View File
@@ -104,7 +104,10 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;
+10 -5
View File
@@ -21,7 +21,7 @@ const getTrans = (locale, key) => {
let jsonObj = locale == "cy" ? transLookupCY : transLookupEN;
console.log(locale, jsonObj[key]);
//console.log(locale, jsonObj[key]);
return jsonObj[key];
};
@@ -68,9 +68,8 @@ const styles = StyleSheet.create({
},
questionAnswerWide: {
color: "#757575",
width: "95%",
width: "100%",
fontSize: 12,
marginLeft: "5%",
border: 1,
borderColor: "#eee",
backgroundColor: "white",
@@ -125,7 +124,10 @@ export const finalComments_pdf = ({ docProps }) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;
@@ -398,7 +400,10 @@ export const finalComments_pdf = ({ docProps }) => {
}
>
{p.name} -{" "}
{bytesToSize(p.size)}{" "}
{bytesToSize(
p.size ||
p.contentLength
)}{" "}
{"\n"}
</Text>
</View>
@@ -87,9 +87,8 @@ const styles = StyleSheet.create({
},
questionAnswerWide: {
color: "#757575",
width: "95%",
width: "100%",
fontSize: 12,
marginLeft: "5%",
border: 1,
borderColor: "#eee",
backgroundColor: "white",
@@ -149,7 +148,10 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;
@@ -558,7 +560,6 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
wrap={false}
>
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
@@ -585,10 +586,8 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
flexDirection: "column",
marginBottom: 10,
}}
wrap={false}
>
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
+5 -2
View File
@@ -21,7 +21,7 @@ const getTrans = (locale, key) => {
let jsonObj = locale == "cy" ? transLookupCY : transLookupEN;
console.log(locale, jsonObj[key]);
//console.log(locale, jsonObj[key]);
return jsonObj[key];
};
@@ -129,7 +129,10 @@ export const other_pdf = ({ docProps }) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;
+11 -6
View File
@@ -18,7 +18,7 @@ const getTrans = (locale, key) => {
let jsonObj = locale == "cy" ? transLookupCY : transLookupEN;
console.log(locale, jsonObj[key]);
//console.log(locale, jsonObj[key]);
return jsonObj[key];
};
@@ -65,9 +65,8 @@ const styles = StyleSheet.create({
},
questionAnswerWide: {
color: "#757575",
width: "95%",
width: "100%",
fontSize: 12,
marginLeft: "5%",
border: 1,
borderColor: "#eee",
backgroundColor: "white",
@@ -97,7 +96,7 @@ const styles = StyleSheet.create({
});
export const statement_pdf = ({ docProps }) => {
console.log("----", docProps);
//console.log("----", docProps);
function formatDates(dateObj) {
var dateObj = new Date(dateObj);
var dd = String(dateObj.getDate()).padStart(2, "0");
@@ -122,7 +121,10 @@ export const statement_pdf = ({ docProps }) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;
@@ -395,7 +397,10 @@ export const statement_pdf = ({ docProps }) => {
}
>
{p.name} -{" "}
{bytesToSize(p.size)}{" "}
{bytesToSize(
p.size ||
p.contentLength
)}{" "}
{"\n"}
</Text>
</View>
@@ -110,7 +110,10 @@ export const writtenStatement_pdf = ({ docProps }) => {
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
? htmlStr.replace(
/<p><br><\/p>|<p class=\"ql-align-justify\"><br><\/p>/g,
""
)
: "";
return cleanStr;