add protected info

This commit is contained in:
smanylov
2026-01-26 16:09:39 +07:00
parent 2be8f81a5b
commit 6ef23862e1
9 changed files with 73 additions and 30 deletions
+5 -2
View File
@@ -31,6 +31,7 @@ type FileItem = {
size?: number | undefined;
uploadDate?: number;
status?: string;
protectStatus: string;
_original?: ApiFile;
};
@@ -42,6 +43,7 @@ type ApiFile = {
fileSize: number;
updatedAt: string;
status: string;
protectStatus: string;
};
type ApiResponse = {
@@ -143,6 +145,7 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
size: item.fileSize,
uploadDate: newDate,
status: item.status,
protectStatus: item.protectStatus,
_original: item
};
});
@@ -207,7 +210,7 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
{cutFileName(row.original.fileName)}
</span>
<br />
<span className="table-item-extension">{cutFileExtension(row.original.fileName)}</span> <span className="table-item-protected">{row.original?.status}</span>
<span className="table-item-extension">{cutFileExtension(row.original.fileName)}</span> <span className="table-item-protected">{t(row.original?.protectStatus)}</span>
</div>
</div>
</div>
@@ -364,7 +367,7 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
return (
<div className="text-center font-semibold table-item">
<span className="table-item-status">
{t('status')}
{row.original.status}
</span>
</div>
)