diff --git a/src/scenes/Home/components/ExportPDFButton/index.tsx b/src/scenes/Home/components/ExportPDFButton/index.tsx index 2e2a87a60566e476280f27c855093e70cee14164..cdbcd9ca4574e0f87244eaeb57c323e02b01fd18 100644 --- a/src/scenes/Home/components/ExportPDFButton/index.tsx +++ b/src/scenes/Home/components/ExportPDFButton/index.tsx @@ -5,14 +5,15 @@ import { downloadAsPDF } from 'scenes/Home/utilities/utils'; interface ExportPDFButtonProps { type: string, selectedKey: string, + dataType: string, clickable: boolean, } function ExportPDFButton({ - type, selectedKey, clickable + type, selectedKey, dataType, clickable }: ExportPDFButtonProps) { - const handleDownload = React.useCallback(async (type: string, selectedKey: string) => { - downloadAsPDF(type, selectedKey); + const handleDownload = React.useCallback(async (type: string, selectedKey: string, dataType: string) => { + downloadAsPDF(type, selectedKey, dataType); }, []); return (