rep defecty 35

This commit is contained in:
2025-01-09 12:20:06 +00:00
parent 0b541f8355
commit e79579a2e2
6 changed files with 28 additions and 12 deletions
+6 -2
View File
@@ -7,7 +7,7 @@ import {
View,
} from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
const styles = StyleSheet.create({
page: {
@@ -1543,7 +1543,11 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
styles.questionTextMid
}
>
{p.name} - {p.size}
{p.name} -{" "}
{bytesToSize(
p.size
)}{" "}
{"\n"}
</Text>
</View>
);
+4 -2
View File
@@ -10,7 +10,7 @@ import ReactPDF, {
} from "@react-pdf/renderer";
import { createElement } from "react";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
import transLookupCY from "../../locales/cy/myrepresentations.json";
import transLookupEN from "../../locales/en/myrepresentations.json";
@@ -377,7 +377,9 @@ export const finalComments_pdf = ({ docProps }) => {
styles.questionTextMid
}
>
{p.name} - {p.size}
{p.name} -{" "}
{bytesToSize(p.size)}{" "}
{"\n"}
</Text>
</View>
);
@@ -7,7 +7,7 @@ import {
View,
} from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
import transLookupCY from "../../locales/cy/myrepresentations.json";
import transLookupEN from "../../locales/en/myrepresentations.json";
@@ -1413,7 +1413,11 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
styles.questionTextMid
}
>
{p.name} - {p.size}
{p.name} -{" "}
{bytesToSize(
p.size
)}{" "}
{"\n"}
</Text>
</View>
);
+4 -2
View File
@@ -10,7 +10,7 @@ import ReactPDF, {
} from "@react-pdf/renderer";
import { createElement } from "react";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
import transLookupCY from "../../locales/cy/myrepresentations.json";
import transLookupEN from "../../locales/en/myrepresentations.json";
@@ -312,7 +312,9 @@ export const other_pdf = ({ docProps }) => {
styles.questionTextMid
}
>
{p.name} - {p.size}
{p.name} -{" "}
{bytesToSize(p.size)}{" "}
{"\n"}
</Text>
</View>
);
+4 -2
View File
@@ -7,7 +7,7 @@ import {
View,
} from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
import transLookupCY from "../../locales/cy/myrepresentations.json";
import transLookupEN from "../../locales/en/myrepresentations.json";
@@ -371,7 +371,9 @@ export const statement_pdf = ({ docProps }) => {
styles.questionTextMid
}
>
{p.name} - {p.size}
{p.name} -{" "}
{bytesToSize(p.size)}{" "}
{"\n"}
</Text>
</View>
);
@@ -7,7 +7,7 @@ import {
View,
} from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
const styles = StyleSheet.create({
page: {
@@ -289,7 +289,9 @@ export const writtenStatement_pdf = ({ docProps }) => {
styles.questionTextMid
}
>
{p.name} - {p.size}
{p.name} -{" "}
{bytesToSize(p.size)}{" "}
{"\n"}
</Text>
</View>
);