From 4d0a1e8011103cb72d23e0442955c927236cfec3 Mon Sep 17 00:00:00 2001 From: jerry Date: Sun, 1 Sep 2024 04:11:15 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20removeElement=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/main/Main.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/main/Main.tsx b/src/pages/main/Main.tsx index 390dcbdd..4e17604e 100644 --- a/src/pages/main/Main.tsx +++ b/src/pages/main/Main.tsx @@ -59,6 +59,17 @@ const Main = () => { } }; + useEffect(() => { + const removeElement = () => { + const element = document.querySelector(".deploy-loading"); + if (element) { + element.remove(); + } + }; + + removeElement(); + }, []); + if (isLoading) { return ; } @@ -71,10 +82,8 @@ const Main = () => { width: "100vw", // 100% 너비 height: "100vh", // 100% 높이 zIndex: 1000, // z-index 값 - position: "fixed", // 화면에 고정 top: 0, // 상단 고정 left: 0, // 좌측 고정 - backgroundColor: "rgba(0, 0, 0, 0.5)", // 반투명 배경 display: "flex", // 플렉스 박스 사용 justifyContent: "center", // 가로 중앙 정렬 alignItems: "center", // 세로 중앙 정렬