diff --git a/src/pages/PageNotFound/PageNotFound.jsx b/src/pages/PageNotFound/PageNotFoundPage.jsx similarity index 90% rename from src/pages/PageNotFound/PageNotFound.jsx rename to src/pages/PageNotFound/PageNotFoundPage.jsx index 29029cc..5957cb5 100644 --- a/src/pages/PageNotFound/PageNotFound.jsx +++ b/src/pages/PageNotFound/PageNotFoundPage.jsx @@ -1,9 +1,9 @@ import Background from "../../components/Background/Background.jsx"; -import styles from "./PageNotFound.module.css" +import styles from "./PageNotFoundPage.module.css" import { useNavigate } from "react-router"; import { APP_CONFIG } from "../../config/appConfig.js"; -export default function PageNotFound() { +export default function PageNotFoundPage() { const navigate = useNavigate(); diff --git a/src/pages/PageNotFound/PageNotFound.module.css b/src/pages/PageNotFound/PageNotFoundPage.module.css similarity index 100% rename from src/pages/PageNotFound/PageNotFound.module.css rename to src/pages/PageNotFound/PageNotFoundPage.module.css diff --git a/src/router.js b/src/router.js index b5f9c3b..cd993f3 100644 --- a/src/router.js +++ b/src/router.js @@ -8,7 +8,7 @@ import ProfilePage from "./pages/Profile/ProfilePage"; import EventsPage from "./pages/Events/EventsPage.jsx"; import AdminPage from "./pages/Admin/AdminPage.jsx"; import ValidationErrorPage from "./pages/waitValidationPage/ValidationErrorPage.jsx"; -import PageNotFound from "./pages/PageNotFound/PageNotFound.jsx"; +import PageNotFoundPage from "./pages/PageNotFound/PageNotFoundPage.jsx"; import eventDetail from "./pages/EventDetail/EventDetailPage.jsx"; import legalNotices from "./pages/LegalNotices/LegalNoticesPage.jsx"; import RGPD from "./pages/RGPD/RGPD.jsx"; @@ -28,11 +28,11 @@ const router = createBrowserRouter([ }, { path: "/*", - Component: PageNotFound, + Component: PageNotFoundPage, }, { path: "/404", - Component: PageNotFound, + Component: PageNotFoundPage, }, { path: "/",