diff --git a/client/src/page/MainPage.tsx b/client/src/page/MainPage.tsx index a9e4e784..b5b141fd 100644 --- a/client/src/page/MainPage.tsx +++ b/client/src/page/MainPage.tsx @@ -33,7 +33,6 @@ const MainPage = () => { const [isWelcomeModalOpen, setWelcomeModalOpen] = useState(false); const [isProfileModalOpen, setProfileModalOpen] = useState(false); //프로필 모달 보이기/숨기기 - const openOAuthModal = useCallback(() => { setOAuthModalOpen(true); }, []); @@ -103,9 +102,9 @@ const MainPage = () => { if (authToken !== null) { dispatch(setLoginState()); } - },); + }); - // 🔴 로그아웃 시 로컬스토리지에 있는 Auth 토큰 제거 + // 🔴 로그아웃 시 로컬스토리지에 있는 Auth 토큰 제거 const handleLogout = () => { dispatch(setLogoutState()); localStorage.removeItem("authToken"); @@ -124,7 +123,6 @@ const MainPage = () => { dispatch(setLoginState()); }; - const handleLoginConfirmationClose = () => { setLoginConfirmationModalOpen(false); }; @@ -135,8 +133,6 @@ const MainPage = () => { setSelectedMenu(menu); }; - - return ( {isLogin === 1 ? : } @@ -184,9 +180,13 @@ export default MainPage; const Container = styled.div` width: 100vw; height: 100vh; - display: flex; flex-direction: column; + overflow: scroll; + + &::-webkit-scrollbar { + display: none; + } `; const Main = styled.main`