merge dev into admin

This commit is contained in:
p2405951
2025-12-17 16:20:46 +01:00
17 changed files with 528 additions and 22 deletions
+19
View File
@@ -7,6 +7,9 @@ import VolunteersPage from "./pages/Volunteers/VolunteersPage";
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 VolunteerProfilePage from "./pages/VolunteerProfile/VolunteerProfilePage.jsx";
import PageNotFound from "./pages/PageNotFound/PageNotFound.jsx";
const router = createBrowserRouter([
{
@@ -17,6 +20,18 @@ const router = createBrowserRouter([
path: "/register",
Component: RegisterPage,
},
{
path: "/error/validation",
Component: ValidationErrorPage
},
{
path: "/*",
Component: PageNotFound,
},
{
path: "/404",
Component: PageNotFound,
},
{
path: "/",
Component: Layout,
@@ -41,6 +56,10 @@ const router = createBrowserRouter([
path: "/volunteers",
Component: VolunteersPage,
},
{
path: "/profile/:id",
Component: VolunteerProfilePage,
}
]
}
])