IO-557 Send documents in emails.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user