File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ function AppContent() {
3131 const isSignupPage = location . pathname === "/signup" ;
3232 const isIdePage = location . pathname . startsWith ( "/ide" ) ;
3333 const isMainPage = location . pathname === "/" ;
34- // ✅ CodecastLive 페이지 플래그 추가
35- const isCodecastLivePage = location . pathname === "/broadcast/live" ;
34+ const isCommunityPage = location . pathname . startsWith ( "/community" ) ;
35+ const isMyPage = location . pathname . startsWith ( "/mypage" ) ;
36+ const isCodecastPage = location . pathname . startsWith ( "/broadcast" ) || location . pathname . startsWith ( "/startbroadcast" ) ;
37+ const shouldShowFooter = isMainPage && ! ( isSignupPage || isIdePage || isCommunityPage || isMyPage || isCodecastPage ) ;
3638
3739 useEffect ( ( ) => {
3840 const token = localStorage . getItem ( 'token' ) ;
@@ -98,8 +100,7 @@ function AppContent() {
98100 < Route path = "*" element = { < Navigate to = "/" replace /> } />
99101 </ Routes >
100102
101- { /* 👈 푸터 렌더링 조건 수정: CodecastLive 페이지가 아닐 때만 렌더링 */ }
102- { ( ! isSignupPage && ! isIdePage && ! isMainPage && ! isCodecastLivePage ) && < Footer /> }
103+ { shouldShowFooter && < Footer /> }
103104
104105 { isLoginModalOpen && (
105106 < Login
You can’t perform that action at this time.
0 commit comments