- implement donation link, in about section

This commit is contained in:
Amruth Pillai
2020-07-14 17:24:59 +05:30
parent 851d6ef020
commit af955bbf55
6 changed files with 106 additions and 63 deletions

View File

@ -38,20 +38,16 @@ const ExportModal = () => {
const handleSinglePageDownload = async () => {
setLoadingSingle(true);
const printSinglePageResume = firebase
.functions()
.httpsCallable('printSinglePageResume');
const { data } = await printSinglePageResume({ id: state.id });
const printResume = firebase.functions().httpsCallable('printResume');
const { data } = await printResume({ id: state.id, type: 'single' });
const blob = b64toBlob(data, 'application/pdf');
openFile(blob);
};
const handleMultiPageDownload = async () => {
setLoadingMulti(true);
const printMultiPageResume = firebase
.functions()
.httpsCallable('printMultiPageResume');
const { data } = await printMultiPageResume({ id: state.id });
const printResume = firebase.functions().httpsCallable('printResume');
const { data } = await printResume({ id: state.id, type: 'multi' });
const blob = b64toBlob(data, 'application/pdf');
openFile(blob);
};