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/UseMessage.tsx | 52 +++++++++++++++++++--------------------
 1 file changed, 26 insertions(+), 26 deletions(-)

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

diff --git a/frontend/src/hooks/UseMessage.tsx b/frontend/src/hooks/UseMessage.tsx
index 97ec746..22a5168 100644
--- a/frontend/src/hooks/UseMessage.tsx
+++ b/frontend/src/hooks/UseMessage.tsx
@@ -1,37 +1,37 @@
-import React, { useState } from 'react';
+import React, { useState } from "react";
 import MessageDialog from "@components/MessageDialog";
 
 const useMessage = () => {
-    const [isOpen, setIsOpen] = useState(false);
+  const [isOpen, setIsOpen] = useState(false);
 
-    const [title, setTitle] = useState<string>("");
-    const [subtitle, setSubtitle] = useState<string>("");
-    const [resolvePromise, setResolvePromise] = useState<(() => void) | null>(null);
+  const [title, setTitle] = useState<string>("");
+  const [subtitle, setSubtitle] = useState<string>("");
+  const [resolvePromise, setResolvePromise] = useState<(() => void) | null>(null);
 
-    const message = (title: string, subtitle: string) => {
-        setIsOpen(true);
-        setTitle(title);
-        setSubtitle(subtitle);
-		return new Promise((resolve) => {
-			setResolvePromise(() => resolve);
-		});
-    };
+  const message = (title: string, subtitle: string) => {
+    setIsOpen(true);
+    setTitle(title);
+    setSubtitle(subtitle);
+    return new Promise((resolve) => {
+      setResolvePromise(() => resolve);
+    });
+  };
 
-    const handleClose = () => {
-        setIsOpen(false);
-        if (resolvePromise) {
-            resolvePromise();
-            setResolvePromise(null);
-        }
-    };
+  const handleClose = () => {
+    setIsOpen(false);
+    if (resolvePromise) {
+      resolvePromise();
+      setResolvePromise(null);
+    }
+  };
 
-    const MessageDialogComponent = isOpen && (
-		<div className="dialog-container">
-        <MessageDialog title={title} subtitle={subtitle} onClose={handleClose}></MessageDialog>
-		</div>
-    );
+  const MessageDialogComponent = isOpen && (
+    <div className="dialog-container">
+      <MessageDialog title={title} subtitle={subtitle} onClose={handleClose}></MessageDialog>
+    </div>
+  );
 
-    return { message, MessageDialogComponent };
+  return { message, MessageDialogComponent };
 }
 
 export default useMessage;
-- 
cgit v1.2.3

