Rename PageNotFound page component files
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
import Background from "../../components/Background/Background.jsx";
|
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 { useNavigate } from "react-router";
|
||||||
import { APP_CONFIG } from "../../config/appConfig.js";
|
import { APP_CONFIG } from "../../config/appConfig.js";
|
||||||
|
|
||||||
export default function PageNotFound() {
|
export default function PageNotFoundPage() {
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
+3
-3
@@ -8,7 +8,7 @@ import ProfilePage from "./pages/Profile/ProfilePage";
|
|||||||
import EventsPage from "./pages/Events/EventsPage.jsx";
|
import EventsPage from "./pages/Events/EventsPage.jsx";
|
||||||
import AdminPage from "./pages/Admin/AdminPage.jsx";
|
import AdminPage from "./pages/Admin/AdminPage.jsx";
|
||||||
import ValidationErrorPage from "./pages/waitValidationPage/ValidationErrorPage.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 eventDetail from "./pages/EventDetail/EventDetailPage.jsx";
|
||||||
import legalNotices from "./pages/LegalNotices/LegalNoticesPage.jsx";
|
import legalNotices from "./pages/LegalNotices/LegalNoticesPage.jsx";
|
||||||
import RGPD from "./pages/RGPD/RGPD.jsx";
|
import RGPD from "./pages/RGPD/RGPD.jsx";
|
||||||
@@ -28,11 +28,11 @@ const router = createBrowserRouter([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/*",
|
path: "/*",
|
||||||
Component: PageNotFound,
|
Component: PageNotFoundPage,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/404",
|
path: "/404",
|
||||||
Component: PageNotFound,
|
Component: PageNotFoundPage,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
|
|||||||
Reference in New Issue
Block a user