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 }) => {
|
cell: ({ row }) => {
|
||||||
return (
|
return (
|
||||||
<div className="text-center font-semibold table-item">
|
<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>
|
</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',
|
id: 'actions',
|
||||||
|
|||||||
@@ -588,7 +588,7 @@
|
|||||||
|
|
||||||
.tanstak-table-filtres {
|
.tanstak-table-filtres {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
@@ -597,9 +597,9 @@
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (max-width: 975px) {
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-filtres-wrapper {
|
.table-filtres-wrapper {
|
||||||
|
|||||||
@@ -292,7 +292,8 @@
|
|||||||
"file-name": "File name",
|
"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-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",
|
"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": {
|
"Login-register-form": {
|
||||||
"and": "and",
|
"and": "and",
|
||||||
|
|||||||
@@ -292,7 +292,8 @@
|
|||||||
"file-name": "Имя файла",
|
"file-name": "Имя файла",
|
||||||
"there-are-not-enough-funds-to-protect-files": "Для защиты файлов недостаточно средств. Необходимо {count} токен(ов/а)",
|
"there-are-not-enough-funds-to-protect-files": "Для защиты файлов недостаточно средств. Необходимо {count} токен(ов/а)",
|
||||||
"there-are-not-enough-funds-to-protect-file": "Для защиты файла недостаточно средств. Необходимо {count} токен(ов/а)",
|
"there-are-not-enough-funds-to-protect-file": "Для защиты файла недостаточно средств. Необходимо {count} токен(ов/а)",
|
||||||
"duplicate-files": "Дубликаты файлов"
|
"duplicate-files": "Дубликаты файлов",
|
||||||
|
"monitoring-is-not-supported": "Мониторинг не поддерживается"
|
||||||
},
|
},
|
||||||
"Login-register-form": {
|
"Login-register-form": {
|
||||||
"and": "и",
|
"and": "и",
|
||||||
|
|||||||
Reference in New Issue
Block a user