diff --git a/frontend/src/components/documents/DocumentRelated.tsx b/frontend/src/components/documents/DocumentRelated.tsx index 1648f9af..ece98c15 100644 --- a/frontend/src/components/documents/DocumentRelated.tsx +++ b/frontend/src/components/documents/DocumentRelated.tsx @@ -8,7 +8,6 @@ import { toast } from "sonner"; interface RelatedDocument { id: number; title: string; - status: string; created_at: string; file_name?: string; } @@ -105,32 +104,6 @@ export function DocumentRelated({ documentId, onNavigate }: DocumentRelatedProps } }; - const getStatusBadge = (status: string) => { - const colors: Record = { - draft: "bg-gray-100 text-gray-700", - in_review: "bg-yellow-100 text-yellow-700", - approved: "bg-green-100 text-green-700", - published: "bg-blue-100 text-blue-700", - archived: "bg-gray-100 text-gray-500", - rejected: "bg-red-100 text-red-700", - }; - - const labels: Record = { - draft: "Черновик", - in_review: "На рассмотрении", - approved: "Утверждено", - published: "Опубликовано", - archived: "В архиве", - rejected: "Отклонено", - }; - - return ( - - {labels[status] || status} - - ); - }; - if (loading) { return (
@@ -203,9 +176,6 @@ export function DocumentRelated({ documentId, onNavigate }: DocumentRelatedProps {doc.title}
-
- {getStatusBadge(doc.status)} -