From 91c9820109e1437fc9aafbdbb635593ccd174985 Mon Sep 17 00:00:00 2001 From: lizerk Date: Mon, 8 Jun 2026 17:10:22 +0300 Subject: [PATCH] fix --- .../components/documents/DocumentDetailModal.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/documents/DocumentDetailModal.tsx b/frontend/src/components/documents/DocumentDetailModal.tsx index 606f69a7..24a4c3e8 100644 --- a/frontend/src/components/documents/DocumentDetailModal.tsx +++ b/frontend/src/components/documents/DocumentDetailModal.tsx @@ -1,6 +1,7 @@ "use client"; import { useState } from "react"; +import dynamic from "next/dynamic"; import { Modal } from "@/components/ui/Modal"; import type { Document } from "@/types/api"; import { @@ -28,7 +29,18 @@ import { import { DocumentAcknowledgement } from "./DocumentAcknowledgement"; import { DocumentComments } from "./DocumentComments"; import { DocumentRelated } from "./DocumentRelated"; -import { DocumentPreviewPane } from "./DocumentPreview"; + +const DocumentPreviewPane = dynamic( + () => import("./DocumentPreview").then((mod) => mod.DocumentPreviewPane), + { + ssr: false, + loading: () => ( +
+

Загружаем предпросмотр...

+
+ ), + }, +); interface DocumentDetailModalProps { document: Document | null;