+
-
-
-
- {tariffData?.map((item: {
- id: number;
- name: string;
- price: number;
- tokens: number;
- maxFilesCount: number;
- diskSize: number;
- }) => (
-
-
-
- {t.has(item.name) ? t(item.name) : item.name}
-
-
{item.price ?? 0} ₽
-
в месяц
-
{item.tokens ?? 0} токенов включено
+ {billingPer === 'per-month' && (
+
+ {tariffData?.map((item: {
+ id: number;
+ name: string;
+ price: number;
+ tokens: number;
+ maxFilesCount: number;
+ diskSize: number;
+ }) => (
+
+
+
+ {t.has(item.name) ? t(item.name) : item.name}
+
+
{item.price ?? 0} ₽
+
{t('per-month')}
+
{item.tokens ?? 0} токенов включено
+
+
+ -
+ ✓
+ {item.maxFilesCount} файлов в месяц
+
+ -
+ ✓
+ {item.diskSize ? convertBytes(item.diskSize) : 0} хранилища
+
+ -
+ ✓
+ Базовые модули защиты
+
+ -
+ ✓
+ Поддержка 24/7
+
+ -
+ ✗
+ API доступ
+
+
+
+ openPaymentWindow(item.price, item.name, item.tokens, item.id)}
+ >
+ Выбрать план
+
+
-
- -
- ✓
- {item.maxFilesCount} файлов в месяц
-
- -
- ✓
- {item.diskSize ? convertBytes(item.diskSize) : 0} хранилища
-
- -
- ✓
- Базовые модули защиты
-
- -
- ✓
- Поддержка 24/7
-
- -
- ✗
- API доступ
-
-
-
- openPaymentWindow(item.price, item.name, item.tokens, item.id)}
- >
- Выбрать план
-
-
-
- ))}
-
+ ))}
+
+ )}
{/* Модальное окно с виджетом */}
diff --git a/src/app/ui/violations/violations-table.tsx b/src/app/ui/violations/violations-table.tsx
index 1787225..a45ece7 100644
--- a/src/app/ui/violations/violations-table.tsx
+++ b/src/app/ui/violations/violations-table.tsx
@@ -4,7 +4,6 @@ import { useMemo, useState } from 'react';
import { useReactTable, getCoreRowModel, getSortedRowModel, getPaginationRowModel, getFilteredRowModel, ColumnDef, SortingState, ColumnFiltersState } from '@tanstack/react-table';
import { useTranslations } from 'next-intl';
import { IconArrowUp, IconArrowDown, IconFilter, IconDoubleArrowRight, IconArrowRight, IconDoubleArrowLeft, IconArrowLeft, IconEye } from '@/app/ui/icons/icons';
-import DropDownList from '@/app/components/DropDownList';
import { useQuery } from '@tanstack/react-query';
import { getViolationFilesArray } from '@/app/actions/violationActions';
import { useViewport } from '@/app/hooks/useViewport';
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index 4775920..d4dc71a 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -342,7 +342,14 @@
"france": "France",
"uk": "United Kingdom",
"china": "China",
- "distribution-analytics": "Distribution analytics"
+ "distribution-analytics": "Distribution analytics",
+ "annual": "Annual",
+ "per-month": "Per month",
+ "violation-count": "Violation count",
+ "your-files": "Your files",
+ "files-under-protection": "Files under protection",
+ "matches-found": "Matches found",
+ "violations-in-progress": "Violations in progress"
},
"Login-register-form": {
"and": "and",
diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json
index 0fdf93d..c582b4b 100644
--- a/src/i18n/messages/ru.json
+++ b/src/i18n/messages/ru.json
@@ -342,7 +342,14 @@
"france": "Франция",
"uk": "Великобритания",
"china": "Китай",
- "distribution-analytics": "Аналитика распространения"
+ "distribution-analytics": "Аналитика распространения",
+ "annual": "Годовая",
+ "per-month": "Помесячно",
+ "violation-count": "Количество нарушений",
+ "your-files": "Ваши файлы",
+ "files-under-protection": "Файлов под защитой",
+ "matches-found": "Найдено совпадений",
+ "violations-in-progress": "Нарушений в работе"
},
"Login-register-form": {
"and": "и",