From 3c230e6fb4b5971669a6df8e4eeb1f9f78339873 Mon Sep 17 00:00:00 2001 From: enes Date: Wed, 21 Aug 2024 11:21:26 +0200 Subject: [PATCH] fix: optional label for download button in filelist --- src/components/FileList/index.tsx | 6 ++++-- src/pages/verify/index.tsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/FileList/index.tsx b/src/components/FileList/index.tsx index 7cd30eb..ada596b 100644 --- a/src/components/FileList/index.tsx +++ b/src/components/FileList/index.tsx @@ -9,13 +9,15 @@ interface FileListProps { currentFile: CurrentUserFile setCurrentFile: (file: CurrentUserFile) => void handleDownload: () => void + downloadLabel?: string } const FileList = ({ files, currentFile, setCurrentFile, - handleDownload + handleDownload, + downloadLabel }: FileListProps) => { const isActive = (file: CurrentUserFile) => file.id === currentFile.id return ( @@ -41,7 +43,7 @@ const FileList = ({ ) diff --git a/src/pages/verify/index.tsx b/src/pages/verify/index.tsx index ceba0eb..46c9f48 100644 --- a/src/pages/verify/index.tsx +++ b/src/pages/verify/index.tsx @@ -538,6 +538,7 @@ export const VerifyPage = () => { currentFile={currentFile} setCurrentFile={setCurrentFile} handleDownload={handleExport} + downloadLabel="Download Sigit" /> )} {displayExportedBy()}