IO-557 Send documents in emails.

This commit is contained in:
Patrick Fic
2021-06-07 12:27:14 -07:00
parent 784c58e295
commit 979ba1c142
22 changed files with 218 additions and 164 deletions

View File

@@ -7,11 +7,12 @@ export default function PrintWrapperComponent({
templateObject,
messageObject = {},
children,
id,
}) {
const [loading, setLoading] = useState(false);
const handlePrint = async (type) => {
setLoading(true);
await GenerateDocument(templateObject, messageObject, type);
await GenerateDocument(templateObject, messageObject, type, id);
setLoading(false);
};