Skip to content

Commit

Permalink
feat: removeElement 함수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperdad committed Aug 31, 2024
1 parent e59c53f commit 4d0a1e8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/pages/main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ const Main = () => {
}
};

useEffect(() => {
const removeElement = () => {
const element = document.querySelector(".deploy-loading");
if (element) {
element.remove();
}
};

removeElement();
}, []);

if (isLoading) {
return <Loading />;
}
Expand All @@ -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", // 세로 중앙 정렬
Expand Down

0 comments on commit 4d0a1e8

Please sign in to comment.