From da79d499b2626d116b7cd52406172d3407458ac6 Mon Sep 17 00:00:00 2001 From: zojgame Date: Sat, 6 Jul 2024 14:38:33 +0500 Subject: [PATCH] env changes --- client/.env | 2 +- .../SequenceWing/SequenceWing.tsx | 22 +++++++++---------- server/.env | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client/.env b/client/.env index 2f2d504..68309bb 100644 --- a/client/.env +++ b/client/.env @@ -1,3 +1,3 @@ # VITE_SERVER_API=https://irth.graff.tech/api -VITE_SERVER_API=http://192.168.1.158:4002 +VITE_SERVER_API=http://192.168.1.158:4003 # VITE_SERVER_API=http://194.26.138.94:4002 diff --git a/client/src/components/complexWingPage/SequenceWing/SequenceWing.tsx b/client/src/components/complexWingPage/SequenceWing/SequenceWing.tsx index 09e2f74..82247f9 100644 --- a/client/src/components/complexWingPage/SequenceWing/SequenceWing.tsx +++ b/client/src/components/complexWingPage/SequenceWing/SequenceWing.tsx @@ -119,11 +119,11 @@ const SequenceWing = () => { } }; - function handleMouseMove( + const handleMouseMove = ( e: MouseEvent> | any - ) { + ) => { setMousePos([e.clientX - 384, e.clientY + Math.abs(top) - 20]); - } + }; function handleOnMouseDown(e: MouseEvent | any) { const screenWidth = window.innerWidth; @@ -183,7 +183,7 @@ const SequenceWing = () => { window.removeEventListener("mousemove", handleMouseMove); window.removeEventListener("mousedown", handleOnMouseDown); }; - }, []); + }, [handleMouseMove]); useEffect(() => { if (!isSidebar) { @@ -245,13 +245,13 @@ const SequenceWing = () => { sortList, ]); - // useEffect(() => { - // if (isLoading) { - // setModal(); - // } else { - // setModal(null); - // } - // }, [isLoading, setModal]); + useEffect(() => { + if (isLoading) { + setModal(); + } else { + setModal(null); + } + }, [isLoading, setModal]); return (
diff --git a/server/.env b/server/.env index 593a6d4..d1e6a69 100644 --- a/server/.env +++ b/server/.env @@ -1,2 +1,2 @@ -PORT=4002 +PORT=4003 REFRESH_TOKEN=1000.da3146d49fa8a399f0c635e74954ff9c.e010dbb1bb605d7e1aa5bf7fc0521f8b \ No newline at end of file