diff --git a/src/app/ui/dashboard/new/dashborad-limits-section.tsx b/src/app/ui/dashboard/new/dashborad-limits-section.tsx
index ed7d41d..7b44a56 100644
--- a/src/app/ui/dashboard/new/dashborad-limits-section.tsx
+++ b/src/app/ui/dashboard/new/dashborad-limits-section.tsx
@@ -35,7 +35,7 @@ export default function DahboardLimitsSection() {
- 5%
+ {getProcents(filesInfo?.all_files_check, 10000)}%
diff --git a/src/app/ui/dashboard/new/violations-carousel.tsx b/src/app/ui/dashboard/new/violations-carousel.tsx
index 67a9860..c44bf7c 100644
--- a/src/app/ui/dashboard/new/violations-carousel.tsx
+++ b/src/app/ui/dashboard/new/violations-carousel.tsx
@@ -7,24 +7,33 @@ import 'swiper/css';
import 'swiper/css/pagination';
import testImage from '@/app/src/image-preview.png'
import { useRef } from 'react';
+import { useTranslations } from 'next-intl';
+import Link from 'next/link';
export default function ViolationsCarousel() {
const paginationRef = useRef(null);
+ const t = useTranslations('Global');
return (
-
+
+ {t('are-no-violations')}
+
+ {/*
@@ -260,7 +268,7 @@ export default function ViolationsCarousel() {
>
-
+
*/}
)
}
\ No newline at end of file
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index 73405c0..523ea79 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -203,7 +203,8 @@
"PROTECTED": "Protected",
"FAILED": "Failed",
"FAILED_SAVE": "Failed save",
- "view": "View"
+ "view": "View",
+ "are-no-violations": "There are no violations"
},
"Login-register-form": {
"and": "and",
diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json
index cd62fbe..73c3730 100644
--- a/src/i18n/messages/ru.json
+++ b/src/i18n/messages/ru.json
@@ -203,7 +203,8 @@
"PROTECTED": "Защищено",
"FAILED": "Ошибка",
"FAILED_SAVE": "Сохранение не удалось",
- "view": "Посмотреть"
+ "view": "Посмотреть",
+ "are-no-violations": "Нарушений нету"
},
"Login-register-form": {
"and": "и",