From 0c03bb925416456ed007dd09bc7e7509b92fe4e6 Mon Sep 17 00:00:00 2001 From: smanylov Date: Mon, 9 Mar 2026 14:38:52 +0700 Subject: [PATCH] remove monitoring from files that are not image --- src/app/components/tanstak-table/TanstakTable.tsx | 14 +++++++++++++- src/app/styles/pages-styles.scss | 8 ++++---- src/i18n/messages/en.json | 3 ++- src/i18n/messages/ru.json | 3 ++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/app/components/tanstak-table/TanstakTable.tsx b/src/app/components/tanstak-table/TanstakTable.tsx index d4c0674..d4630ce 100644 --- a/src/app/components/tanstak-table/TanstakTable.tsx +++ b/src/app/components/tanstak-table/TanstakTable.tsx @@ -406,10 +406,22 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) { cell: ({ row }) => { return (
- + {row.original.fileType === 'image' ? ( + + ) : ( +
+ {t('monitoring-is-not-supported')} +
+ )}
) }, + /* 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', diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index 34f5c7b..02cde73 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -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 { diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index 351f1f8..671da66 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -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", diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 0298510..2b247ed 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -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": "и",