From 69aeb7889ac136a8e4fbe7de1330298e30345479 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Wed, 22 Oct 2025 13:59:12 +0400
Subject: feat/frontend: switch to vite, update node to v22 (#281)

---
 frontend/src/hooks/UseMessageLoad.tsx | 48 +++++++++++++++++------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

(limited to 'frontend/src/hooks/UseMessageLoad.tsx')

diff --git a/frontend/src/hooks/UseMessageLoad.tsx b/frontend/src/hooks/UseMessageLoad.tsx
index 228c2b4..eb42a45 100644
--- a/frontend/src/hooks/UseMessageLoad.tsx
+++ b/frontend/src/hooks/UseMessageLoad.tsx
@@ -1,35 +1,35 @@
-import React, { useState } from 'react';
+import React, { useState } from "react";
 import MessageDialogLoad from "@components/MessageDialogLoad";
 
 const useMessageLoad = () => {
-    const [isOpen, setIsOpen] = useState(false);
+  const [isOpen, setIsOpen] = useState(false);
 
-    const [title, setTitle] = useState<string>("");
-    const [resolvePromise, setResolvePromise] = useState<(() => void) | null>(null);
+  const [title, setTitle] = useState<string>("");
+  const [resolvePromise, setResolvePromise] = useState<(() => void) | null>(null);
 
-	const messageLoad = (title: string) => {
-        setIsOpen(true);
-        setTitle(title);
-		return new Promise((resolve) => {
-			setResolvePromise(() => resolve);
-		});
-    };
+  const messageLoad = (title: string) => {
+    setIsOpen(true);
+    setTitle(title);
+    return new Promise((resolve) => {
+      setResolvePromise(() => resolve);
+    });
+  };
 
-    const messageLoadClose = () => {
-        setIsOpen(false);
-        if (resolvePromise) {
-            resolvePromise();
-            setResolvePromise(null);
-        }
-    };
+  const messageLoadClose = () => {
+    setIsOpen(false);
+    if (resolvePromise) {
+      resolvePromise();
+      setResolvePromise(null);
+    }
+  };
 
-    const MessageDialogLoadComponent = isOpen && (
-		<div className="dialog-container">
-        <MessageDialogLoad title={title} onClose={messageLoadClose}></MessageDialogLoad>
-		</div>
-    );
+  const MessageDialogLoadComponent = isOpen && (
+    <div className="dialog-container">
+      <MessageDialogLoad title={title} onClose={messageLoadClose}></MessageDialogLoad>
+    </div>
+  );
 
-    return { messageLoad, messageLoadClose, MessageDialogLoadComponent };
+  return { messageLoad, messageLoadClose, MessageDialogLoadComponent };
 }
 
 export default useMessageLoad;
-- 
cgit v1.2.3

