From f9d8429d6e993376b1134182107a8ffa8d8e2ed8 Mon Sep 17 00:00:00 2001 From: MinSeok Kim Date: Tue, 10 Dec 2024 01:11:55 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20root=20page=20=EB=9D=BC=EC=9A=B0?= =?UTF-8?q?=ED=84=B0=20landing=20page=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/RootLayout.tsx | 4 ++-- src/components/common/Footer.tsx | 4 ++-- src/constants/routes.ts | 2 +- src/pages/Error/index.tsx | 2 +- src/pages/Event/index.tsx | 4 ++-- src/pages/Landing/index.tsx | 10 ++++++++++ src/pages/MyPage/components/Header/Header.tsx | 4 ++-- src/pages/QSpace/hooks/Query/useGroupList.ts | 3 ++- src/pages/QSpace/hooks/Query/useMemberList.ts | 2 +- src/pages/Question/index.tsx | 16 +++++++++------- src/router/index.tsx | 2 +- src/utils/cookies.ts | 2 +- 12 files changed, 34 insertions(+), 21 deletions(-) diff --git a/src/components/RootLayout.tsx b/src/components/RootLayout.tsx index f3d0654..fb48f2a 100644 --- a/src/components/RootLayout.tsx +++ b/src/components/RootLayout.tsx @@ -3,10 +3,10 @@ import { Outlet, useLocation } from 'react-router-dom'; const RootLayout = () => { const location = useLocation(); - const isFooterHidden = location.pathname.startsWith('/chatroom'); + const isFooterHidden = location.pathname === '/' || location.pathname.startsWith('/chatroom'); return (
-
+
{!isFooterHidden &&