From 651578dd11f96e02efb1f839b434ea9d1b6ce185 Mon Sep 17 00:00:00 2001 From: danilomartinss Date: Thu, 19 Dec 2024 15:07:40 +0100 Subject: [PATCH] prettier fix --- src/lib/data/csvExport.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/lib/data/csvExport.ts b/src/lib/data/csvExport.ts index 260718b..7f48779 100644 --- a/src/lib/data/csvExport.ts +++ b/src/lib/data/csvExport.ts @@ -16,15 +16,14 @@ const DownloadCSV = >( return [header, ...rows].join("\n"); }; - const csvContent = convertToCSV(data); - const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8;" }); - const url = URL.createObjectURL(blob); - const link = document.createElement('a'); - link.setAttribute('href', url); - link.setAttribute('download', `${fileName}.csv`); - link.click(); - URL.revokeObjectURL(url); + const csvContent = convertToCSV(data); + const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8;" }); + const url = URL.createObjectURL(blob); + const link = document.createElement("a"); + link.setAttribute("href", url); + link.setAttribute("download", `${fileName}.csv`); + link.click(); + URL.revokeObjectURL(url); }; export default DownloadCSV; -