remove monitoring from files that are not image
This commit is contained in:
@@ -406,10 +406,22 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
|
||||
cell: ({ row }) => {
|
||||
return (
|
||||
<div className="text-center font-semibold table-item">
|
||||
<MonitoringDropDown file={row.original} />
|
||||
{row.original.fileType === 'image' ? (
|
||||
<MonitoringDropDown file={row.original} />
|
||||
) : (
|
||||
<div>
|
||||
{t('monitoring-is-not-supported')}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
},
|
||||
/* sortingFn: (rowA, rowB) => {
|
||||
console.log(rowA.original.monitoring, rowB.original.monitoring)
|
||||
const monitoringA = rowA.original.monitoring;
|
||||
const monitoringB = rowA.original.monitoring;
|
||||
return monitoringA - monitoringB;
|
||||
}, */
|
||||
},
|
||||
{
|
||||
id: 'actions',
|
||||
|
||||
@@ -588,7 +588,7 @@
|
||||
|
||||
.tanstak-table-filtres {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
@@ -597,9 +597,9 @@
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
@media (max-width: 975px) {
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.table-filtres-wrapper {
|
||||
|
||||
@@ -292,7 +292,8 @@
|
||||
"file-name": "File name",
|
||||
"there-are-not-enough-funds-to-protect-files": "There are not enough funds to protect files. {count} tokens required",
|
||||
"there-are-not-enough-funds-to-protect-file": "There are not enough funds to protect file. {count} tokens required",
|
||||
"duplicate-files": "Duplicate files"
|
||||
"duplicate-files": "Duplicate files",
|
||||
"monitoring-is-not-supported": "Monitoring is not supported"
|
||||
},
|
||||
"Login-register-form": {
|
||||
"and": "and",
|
||||
|
||||
@@ -292,7 +292,8 @@
|
||||
"file-name": "Имя файла",
|
||||
"there-are-not-enough-funds-to-protect-files": "Для защиты файлов недостаточно средств. Необходимо {count} токен(ов/а)",
|
||||
"there-are-not-enough-funds-to-protect-file": "Для защиты файла недостаточно средств. Необходимо {count} токен(ов/а)",
|
||||
"duplicate-files": "Дубликаты файлов"
|
||||
"duplicate-files": "Дубликаты файлов",
|
||||
"monitoring-is-not-supported": "Мониторинг не поддерживается"
|
||||
},
|
||||
"Login-register-form": {
|
||||
"and": "и",
|
||||
|
||||
Reference in New Issue
Block a user