added in options for uploadstream for rep pdfs
This commit is contained in:
@@ -85,7 +85,7 @@ const styles = StyleSheet.create({
|
||||
});
|
||||
|
||||
export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
||||
console.log(docProps);
|
||||
//console.log(docProps);
|
||||
function formatDates(dateObj) {
|
||||
var dateObj = new Date(dateObj);
|
||||
var dd = String(dateObj.getDate()).padStart(2, "0");
|
||||
@@ -96,9 +96,9 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
||||
}
|
||||
let values = docProps;
|
||||
let appealTypeValue = getFormCollectionByID(values.appealType);
|
||||
console.log("//////////////////////\n docpropseeeee:".docProps);
|
||||
//console.log("//////////////////////\n docpropseeeee:".docProps);
|
||||
|
||||
console.log("sdffhjdhjdjdgkj: ", values.procedureType);
|
||||
//console.log("sdffhjdhjdjdgkj: ", values.procedureType);
|
||||
return (
|
||||
<Document>
|
||||
<Page size="A4" style={styles.page} wrap>
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
Page,
|
||||
StyleSheet,
|
||||
Text,
|
||||
View
|
||||
View,
|
||||
} from "@react-pdf/renderer";
|
||||
import Html from "react-pdf-html";
|
||||
import { getFormCollectionByID } from "../../components/utils";
|
||||
@@ -17,7 +17,7 @@ const getTrans = (locale, key) => {
|
||||
|
||||
let jsonObj = locale == "cy" ? transLookupCY : transLookupEN;
|
||||
|
||||
console.log(locale, jsonObj[key]);
|
||||
//console.log(locale, jsonObj[key]);
|
||||
return jsonObj[key];
|
||||
};
|
||||
|
||||
@@ -107,10 +107,10 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
return dd + "/" + mm + "/" + yyyy;
|
||||
}
|
||||
let values = docProps;
|
||||
console.log("//////////////////////\n docprops:", docProps);
|
||||
//console.log("//////////////////////\n docprops:", docProps);
|
||||
let appealTypeValue = getFormCollectionByID(values.appealType);
|
||||
|
||||
console.log("sdffhjdhjdjdgkj: ", values.procedureType);
|
||||
//console.log("sdffhjdhjdjdgkj: ", values.procedureType);
|
||||
return (
|
||||
<Document>
|
||||
<Page size="A4" style={styles.page} wrap>
|
||||
|
||||
Reference in New Issue
Block a user