From 5f74a7743f6a56b73785729acaa390c9dcc32748 Mon Sep 17 00:00:00 2001 From: Mohammad Torkashvand <mohammad.torkashvand@geant.org> Date: Wed, 16 Aug 2023 12:36:09 +0200 Subject: [PATCH] rename DownloadCSVProps to DownloadProps --- compendium-frontend/src/components/DownloadDataButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compendium-frontend/src/components/DownloadDataButton.tsx b/compendium-frontend/src/components/DownloadDataButton.tsx index fa7f5807..e57d65de 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; -- GitLab