diff --git a/src/components/FileList/index.tsx b/src/components/FileList/index.tsx index 7cd30eb..f1fdcd8 100644 --- a/src/components/FileList/index.tsx +++ b/src/components/FileList/index.tsx @@ -1,8 +1,6 @@ import { CurrentUserFile } from '../../types/file.ts' import styles from './style.module.scss' import { Button } from '@mui/material' -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faCheck } from '@fortawesome/free-solid-svg-icons' interface FileListProps { files: CurrentUserFile[] @@ -28,14 +26,8 @@ const FileList = ({ className={`${styles.fileItem} ${isActive(file) && styles.active}`} onClick={() => setCurrentFile(file)} > -
{file.id}
-
-
{file.filename}
-
- -
- {file.isHashValid && } -
+ {file.id} + {file.filename} ))} diff --git a/src/components/FileList/style.module.scss b/src/components/FileList/style.module.scss index 6f7b64a..40b83a3 100644 --- a/src/components/FileList/style.module.scss +++ b/src/components/FileList/style.module.scss @@ -21,12 +21,6 @@ ul { padding: 0; /* Removes default padding */ } -li { - list-style-type: none; /* Removes the bullets */ - margin: 0; /* Removes any default margin */ - padding: 0; /* Removes any default padding */ -} - .wrap { display: flex; @@ -89,12 +83,6 @@ li { color: white; } -.fileInfo { - flex-grow: 1; - font-size: 16px; - font-weight: 500; -} - .fileName { display: -webkit-box; -webkit-box-orient: vertical; @@ -109,15 +97,4 @@ li { flex-direction: column; justify-content: center; align-items: center; - width: 10px; -} - -.fileVisual { - display: flex; - flex-shrink: 0; - flex-direction: column; - justify-content: center; - align-items: center; - height: 25px; - width: 25px; } \ No newline at end of file diff --git a/src/pages/sign/index.tsx b/src/pages/sign/index.tsx index a762292..9f2ab7c 100644 --- a/src/pages/sign/index.tsx +++ b/src/pages/sign/index.tsx @@ -952,7 +952,7 @@ export const SignPage = () => { return ( { * including its name, hash, and content * @param files * @param fileHashes - * @param creatorFileHashes */ export const getCurrentUserFiles = ( files: { [filename: string]: PdfFile }, - fileHashes: { [key: string]: string | null }, - creatorFileHashes: { [key: string]: string } + fileHashes: { [key: string]: string | null } ): CurrentUserFile[] => { return Object.entries(files).map(([filename, pdfFile], index) => { return { pdfFile, filename, id: index + 1, - ...(!!fileHashes[filename] && { hash: fileHashes[filename]! }), - isHashValid: creatorFileHashes[filename] === fileHashes[filename] + ...(!!fileHashes[filename] && { hash: fileHashes[filename]! }) } }) }