Rename WaitValidation page component files
This commit is contained in:
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
import styles from "./validationErrorPage.module.css"
|
import styles from "./WaitValidationPage.module.css"
|
||||||
import Background from "../../components/Background/Background.jsx";
|
import Background from "../../components/Background/Background.jsx";
|
||||||
import Button from "../../components/ui/Button/Button";
|
import Button from "../../components/ui/Button/Button";
|
||||||
import { useContext } from "react";
|
import { useContext } from "react";
|
||||||
import { AuthContext } from "../../contexts/Auth/AuthContext.js";
|
import { AuthContext } from "../../contexts/Auth/AuthContext.js";
|
||||||
import { Navigate, useNavigate, Link } from "react-router";
|
import { Navigate, useNavigate, Link } from "react-router";
|
||||||
|
|
||||||
export default function ValidationErrorPage() {
|
export default function WaitValidationPage() {
|
||||||
|
|
||||||
const { logout, user } = useContext(AuthContext);
|
const { logout, user } = useContext(AuthContext);
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
+2
-2
@@ -7,7 +7,7 @@ import VolunteersPage from "./pages/Volunteers/VolunteersPage";
|
|||||||
import ProfilePage from "./pages/Profile/ProfilePage";
|
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 WaitValidationPage from "./pages/WaitValidation/WaitValidationPage.jsx";
|
||||||
import PageNotFoundPage from "./pages/PageNotFound/PageNotFoundPage.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";
|
||||||
@@ -24,7 +24,7 @@ const router = createBrowserRouter([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/error/validation",
|
path: "/error/validation",
|
||||||
Component: ValidationErrorPage
|
Component: WaitValidationPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/*",
|
path: "/*",
|
||||||
|
|||||||
Reference in New Issue
Block a user