diff options
| author | rlaks5757 <rlaks5757@gmail.com> | 2025-03-28 12:28:12 +0900 |
|---|---|---|
| committer | rlaks5757 <rlaks5757@gmail.com> | 2025-03-28 12:28:12 +0900 |
| commit | 2bcbef17fadb6799cca97bf612c87fc558dd19ca (patch) | |
| tree | a7cb3cfcae4291b0b76dd497ad596dbb6a328950 | |
| parent | fb156d213c8ed42cc8240fbad883e69d85178413 (diff) | |
format changed
| -rw-r--r-- | components/documents/view-document-dialog.tsx | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/components/documents/view-document-dialog.tsx b/components/documents/view-document-dialog.tsx index 9711c4be..bd802b77 100644 --- a/components/documents/view-document-dialog.tsx +++ b/components/documents/view-document-dialog.tsx @@ -1,18 +1,13 @@ -"use client"; +"use client" -import * as React from "react"; +import * as React from "react" import { WebViewerInstance } from "@pdftron/webviewer"; import { - Dialog, - DialogTrigger, - DialogContent, - DialogHeader, - DialogTitle, - DialogDescription, - DialogFooter, -} from "@/components/ui/dialog"; -import { Building2, FileIcon, Loader2 } from "lucide-react"; -import { Button } from "@/components/ui/button"; + Dialog, DialogTrigger, DialogContent, DialogHeader, + DialogTitle, DialogDescription, DialogFooter +} from "@/components/ui/dialog" +import { Building2, FileIcon, Loader2 } from "lucide-react" +import { Button } from "@/components/ui/button" // 인터페이스 interface Attachment { @@ -201,8 +196,7 @@ const DocumentViewer: React.FC<{ return ( <Dialog open={open} - onOpenChange={async (val) => { - console.log({ val, fileSetLoading }); + onOpenChange={async (val) => { if (!val && fileSetLoading) { return; } @@ -219,7 +213,7 @@ const DocumentViewer: React.FC<{ // cleanupHtmlStyle() setViewerLoading(false); setOpen((prev) => !prev); - await setTimeout(() => cleanupHtmlStyle(), 1000); + setTimeout(() => cleanupHtmlStyle(), 1000); }} > <DialogContent className="w-[90vw] h-[90vh]" style={{ maxWidth: "none" }}> |
