From 2bcbef17fadb6799cca97bf612c87fc558dd19ca Mon Sep 17 00:00:00 2001
From: rlaks5757 <rlaks5757@gmail.com>
Date: Fri, 28 Mar 2025 12:28:12 +0900
Subject: format changed

---
 components/documents/view-document-dialog.tsx | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

(limited to 'components/documents/view-document-dialog.tsx')

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" }}>
-- 
cgit v1.2.3

