diff --git a/src/App.jsx b/src/App.jsx index 1af12b58..56770dcc 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -39,21 +39,18 @@ const Content = styled.div` const Layout = () => { const location = useLocation(); + const excludePaths = [/^\/login/, /^\/signup/, /^\/agree\/[0-1]/]; + + const isExcludedPath = excludePaths.some((regex) => + regex.test(location.pathname) + ); return ( - {location.pathname === "/login" || - location.pathname === "/signup" || - location.pathname === "/signup/custom" || - location.pathname === "/agree/0" || - location.pathname === "/agree/1" ? ( - <> - ) : ( -