This commit is contained in:
@@ -343,8 +343,8 @@ export function Contract() {
|
|||||||
<ContractRecap
|
<ContractRecap
|
||||||
opened={isRecapModalOpened}
|
opened={isRecapModalOpened}
|
||||||
close={closeRecapModal}
|
close={closeRecapModal}
|
||||||
pdfUrl={pdfUrl}
|
|
||||||
contractName={`${form.name}-${form.season}`}
|
contractName={`${form.name}-${form.season}`}
|
||||||
|
pdfUrl={pdfUrl}
|
||||||
/>
|
/>
|
||||||
<Space h="15vh"></Space>
|
<Space h="15vh"></Space>
|
||||||
<Overlay
|
<Overlay
|
||||||
|
|||||||
@@ -35,10 +35,7 @@ export function ContractRecap({ opened, close, contractName, pdfUrl }: ContractR
|
|||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
opened={opened}
|
opened={opened}
|
||||||
onClose={() => {
|
onClose={close}
|
||||||
URL.revokeObjectURL(pdfUrl);
|
|
||||||
close();
|
|
||||||
}}
|
|
||||||
size={"55rem"}
|
size={"55rem"}
|
||||||
title={t("contract recap", { capfirst: true })}
|
title={t("contract recap", { capfirst: true })}
|
||||||
>
|
>
|
||||||
@@ -52,7 +49,7 @@ export function ContractRecap({ opened, close, contractName, pdfUrl }: ContractR
|
|||||||
onSubmit={form.onSubmit(() => {
|
onSubmit={form.onSubmit(() => {
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = pdfUrl;
|
link.href = pdfUrl;
|
||||||
link.download = contractName || "contract";
|
link.download = contractName;
|
||||||
link.click();
|
link.click();
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user