|
|
|
@@ -27,6 +27,7 @@ import { useParams } from "react-router"; |
|
|
|
import { PAGE_SIZE_FILES } from "../../constants/keyCodeConstants"; |
|
|
|
import { useTheme } from "@mui/system"; |
|
|
|
import { useMediaQuery } from "@mui/material"; |
|
|
|
import NumericLabel from "react-pretty-numbers"; |
|
|
|
|
|
|
|
const FileTable = ({ trigger }) => { |
|
|
|
const [file, setFile] = useState(null); |
|
|
|
@@ -407,7 +408,7 @@ const FileTable = ({ trigger }) => { |
|
|
|
{file === null ? <th>{t("files.doucmentPath")}</th> : ""} |
|
|
|
<th>{t("files.doucmentName")}</th> |
|
|
|
{file === null ? <th>{t("files.doucmentType")}</th> : ""} |
|
|
|
{file === null ? <th>{t("files.doucmentSize")}</th> : ""} |
|
|
|
{file === null ? <th>{t("files.doucmentSize")} (kB)</th> : ""} |
|
|
|
{file === null ? <th>{t("files.deleteDocument")}</th> : ""} |
|
|
|
{file === null ? <th>{t("files.note")}</th> : ""} |
|
|
|
<th>{t("files.downloadDocument")}</th> |
|
|
|
@@ -431,14 +432,16 @@ const FileTable = ({ trigger }) => { |
|
|
|
{file === null ? <td>{n.file_type && n.file_type}</td> : ""} |
|
|
|
|
|
|
|
{file === null ? ( |
|
|
|
<td className="profession">{n.cached_file_size}kB</td> |
|
|
|
<td className="profession"> |
|
|
|
{<NumericLabel>{n.cached_file_size}</NumericLabel>} |
|
|
|
</td> |
|
|
|
) : ( |
|
|
|
"" |
|
|
|
)} |
|
|
|
{file === null ? ( |
|
|
|
<td className="profession"> |
|
|
|
<IconButton |
|
|
|
className="c-btn c-btn--primary-outlined files-view-page-delete-btn" |
|
|
|
className="c-btn c-btn--primary-outlined" |
|
|
|
onClick={() => |
|
|
|
setFileForDelete({ |
|
|
|
open: true, |
|
|
|
@@ -459,7 +462,7 @@ const FileTable = ({ trigger }) => { |
|
|
|
{file === null ? ( |
|
|
|
<td className="profession"> |
|
|
|
<IconButton |
|
|
|
className="c-btn c-btn--primary-outlined files-view-page-delete-btn" |
|
|
|
className="c-btn c-btn--primary-outlined" |
|
|
|
onClick={() => { |
|
|
|
setOpenNoteModal({ |
|
|
|
open: true, |
|
|
|
@@ -482,9 +485,9 @@ const FileTable = ({ trigger }) => { |
|
|
|
<a |
|
|
|
className="applicant-cv-button" |
|
|
|
style={{ |
|
|
|
width: "100px", |
|
|
|
width: "90px", |
|
|
|
height: "40px", |
|
|
|
padding: 8, |
|
|
|
padding: 10, |
|
|
|
}} |
|
|
|
download={n.title} |
|
|
|
href={getPathForFile(n.file_type, n.file_stream)} |