fix(documents): Исправлена кнопка открытия файла и удален document_type
- Добавлена закрывающая скобка } в onClick handler - Добавлено содержимое кнопки с иконкой Eye - Удален блок отображения document_type (поле не существует в модели)
This commit is contained in:
parent
15e1367042
commit
856e08db4a
@ -260,11 +260,6 @@ export default function DocumentsPage() {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 className="mb-1 text-sm font-medium text-gray-700">Тип</h3>
|
||||
<p className="text-sm text-gray-600">{selectedDocument.document_type}</p>
|
||||
</div>
|
||||
|
||||
{selectedDocument.file_url && (
|
||||
<div>
|
||||
<button
|
||||
@ -273,6 +268,11 @@ export default function DocumentsPage() {
|
||||
url: selectedDocument.file_url!,
|
||||
name: selectedDocument.file_name || selectedDocument.title,
|
||||
})
|
||||
}
|
||||
className="inline-flex items-center gap-2 rounded-lg bg-sky-600 px-4 py-2 text-sm font-medium text-white transition hover:bg-sky-700"
|
||||
>
|
||||
<Eye size={16} />
|
||||
Открыть файл
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user