fix: useSigitProfiles dep, map item keys warnining, sign button styles, placeholder, optional button label #160
@ -9,13 +9,15 @@ interface FileListProps {
|
|||||||
currentFile: CurrentUserFile
|
currentFile: CurrentUserFile
|
||||||
setCurrentFile: (file: CurrentUserFile) => void
|
setCurrentFile: (file: CurrentUserFile) => void
|
||||||
handleDownload: () => void
|
handleDownload: () => void
|
||||||
|
downloadLabel?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const FileList = ({
|
const FileList = ({
|
||||||
files,
|
files,
|
||||||
currentFile,
|
currentFile,
|
||||||
setCurrentFile,
|
setCurrentFile,
|
||||||
handleDownload
|
handleDownload,
|
||||||
|
downloadLabel
|
||||||
}: FileListProps) => {
|
}: FileListProps) => {
|
||||||
const isActive = (file: CurrentUserFile) => file.id === currentFile.id
|
const isActive = (file: CurrentUserFile) => file.id === currentFile.id
|
||||||
return (
|
return (
|
||||||
@ -41,7 +43,7 @@ const FileList = ({
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<Button variant="contained" fullWidth onClick={handleDownload}>
|
<Button variant="contained" fullWidth onClick={handleDownload}>
|
||||||
Download Files
|
{downloadLabel ? downloadLabel : 'Download Files'}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -538,6 +538,7 @@ export const VerifyPage = () => {
|
|||||||
currentFile={currentFile}
|
currentFile={currentFile}
|
||||||
setCurrentFile={setCurrentFile}
|
setCurrentFile={setCurrentFile}
|
||||||
handleDownload={handleExport}
|
handleDownload={handleExport}
|
||||||
|
downloadLabel="Download Sigit"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{displayExportedBy()}
|
{displayExportedBy()}
|
||||||
|
Loading…
Reference in New Issue
Block a user