add protected info
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user