diff --git a/compendium-frontend/src/components/DownloadDataButton.tsx b/compendium-frontend/src/components/DownloadDataButton.tsx index fa7f5807099249a795ed3b3ea93ca1d65d4c20b8..e57d65de4808266334641c98ba254ef324d9dd6e 100644 --- a/compendium-frontend/src/components/DownloadDataButton.tsx +++ b/compendium-frontend/src/components/DownloadDataButton.tsx @@ -3,7 +3,7 @@ import * as XLSX from "xlsx"; import {ExportType} from "../helpers/constants"; -interface DownloadCSVProps { +interface DownloadProps { data: any[]; filename: string; exportType: ExportType; @@ -56,7 +56,7 @@ function convertToExcel(jsonData: any[], sheetName = "Sheet1"): Blob { return new Blob([buffer], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8'}); } -const DownloadDataButton: React.FC<DownloadCSVProps> = ({data, filename, exportType}) => { +const DownloadDataButton: React.FC<DownloadProps> = ({data, filename, exportType}) => { const downloadData = () => { let convertedData;