diff --git a/frontend/src/components/NotFoundRedirect.tsx b/frontend/src/components/NotFoundRedirect.tsx index 4b48929f..c4768aaa 100644 --- a/frontend/src/components/NotFoundRedirect.tsx +++ b/frontend/src/components/NotFoundRedirect.tsx @@ -1,12 +1,7 @@ -import { useEffect } from "react"; -import { useNavigate } from "react-router-dom"; +import NotFound from "pages/NotFound"; const NotFoundRedirect = () => { - const navigate = useNavigate(); - useEffect(() => { - navigate("/404", { replace: true }); - }, [navigate]); - return null; + return ; }; export default NotFoundRedirect;