- {t('download-for-protection', { fileType: t(fileType.toLocaleLowerCase()) })}
+ {t('upload-for-protection', { fileType: t(fileType.toLocaleLowerCase()) })}
-

setError('Не удалось загрузить превью изображения')}
- />
+ {fileType === 'IMAGE' && (
+

setError('Не удалось загрузить превью изображения')}
+ />
+ )}
-
+ {fileType === 'VIDEO' && (
+
)}
diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss
index 0b138c2..2fbc548 100644
--- a/src/app/styles/pages-styles.scss
+++ b/src/app/styles/pages-styles.scss
@@ -517,6 +517,14 @@
min-width: 160px;
transform: translateY(0px);
box-shadow: none;
+
+ &.disabled {
+ opacity: 0.5;
+
+ &:hover {
+ transform: none;
+ }
+ }
}
.btn-cancel {
diff --git a/src/app/ui/marking-page/upload-section-video.tsx b/src/app/ui/marking-page/upload-section-video.tsx
index 868afca..5161bed 100644
--- a/src/app/ui/marking-page/upload-section-video.tsx
+++ b/src/app/ui/marking-page/upload-section-video.tsx
@@ -1,4 +1,5 @@
'use client';
+/* removed */
import { useState, useRef } from 'react';
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index ba0fa26..5a2c5e0 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -17,7 +17,7 @@
"checks": "Checks",
"check": "Checks",
"videos": "Videos",
- "video": "vides",
+ "video": "videos",
"audios": "Audio",
"audio": "audio",
"images": "Images",
@@ -126,8 +126,9 @@
"or": "or",
"drag-the-file-here": "Drag the file here",
"select-files-to-protect": "Select files to protect",
- "download-for-protection": "Download {fileType} for protection",
- "image": "image"
+ "upload-for-protection": "Upload {fileType} for protection",
+ "image": "image",
+ "file-has-no-extension": "File has no extension"
},
"Login-register-form": {
"and": "and",
diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json
index 458d77a..c235f61 100644
--- a/src/i18n/messages/ru.json
+++ b/src/i18n/messages/ru.json
@@ -126,8 +126,9 @@
"or": "или",
"drag-the-file-here": "Перетащите файл сюда",
"select-files-to-protect": "Выбрать файлы для защиты",
- "download-for-protection": "Загрузить {fileType} для защиты",
- "image": "изображений"
+ "upload-for-protection": "Загрузить {fileType} для защиты",
+ "image": "изображений",
+ "file-has-no-extension": "Файл не имеет расширения"
},
"Login-register-form": {
"and": "и",