Skip to content

Commit 1967e0d

Browse files
fix: print report issue
1 parent b2b5f9f commit 1967e0d

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"dependencies": {
7-
"@churchapps/apphelper": "0.4.6",
7+
"@churchapps/apphelper": "0.4.7",
88
"@churchapps/helpers": "^1.0.39",
99
"@mui/icons-material": "^7.1.2",
1010
"@mui/material": "^7.1.2",

src/donations/PrintDonationPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const PrintDonationPage = () => {
4747
setTimeout(() => {
4848
window.print();
4949
navigate(-1);
50-
}, 1000);
50+
}, 1500);
5151
};
5252

5353
const getDate = () => {
@@ -91,7 +91,7 @@ export const PrintDonationPage = () => {
9191
result.push({ fund: fd.fund, total: fd.amount });
9292
}
9393
});
94-
const tableValues: JSX.Element[] = [];
94+
const tableValues: React.ReactElement[] = [];
9595

9696
result.forEach((tv) => {
9797
tableValues.push(<tr style={{ height: "24px" }}>
@@ -125,7 +125,7 @@ export const PrintDonationPage = () => {
125125
};
126126

127127
const tableDonations = () => {
128-
const result: JSX.Element[] = [];
128+
const result: React.ReactElement[] = [];
129129
fundDonations.forEach((fd) => {
130130
const donation = ArrayHelper.getOne(donations, "id", fd.donationId);
131131
const fund = ArrayHelper.getOne(funds, "id", fd.fundId);

0 commit comments

Comments
 (0)