diff --git a/React/panda-market/src/App.jsx b/React/panda-market/src/App.jsx index f8a23804..cde74c02 100644 --- a/React/panda-market/src/App.jsx +++ b/React/panda-market/src/App.jsx @@ -8,17 +8,16 @@ import "./styles/App.color.css"; function App() { const location = useLocation(); + const isAuthPage = ["/login", "/signup"].includes(location.pathname); + const isHomePage = location.pathname === "/"; + return ( <> - {!["/signin", "/signup"].includes(location.pathname) && ( -
- )} + {!isAuthPage &&
}
- {["/"].includes(location.pathname) && ( -