Skip to content

Commit a1f8902

Browse files
committed
푸터 삭제
1 parent aaddbd2 commit a1f8902

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/App.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)