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