Create VolunteerProfilePage
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
import styles from "./VolunteerProfilePage.module.css"
|
||||||
|
import { useParams } from "react-router";
|
||||||
|
|
||||||
|
|
||||||
|
export default function VolunteerProfilePage() {
|
||||||
|
|
||||||
|
const params = useParams();
|
||||||
|
const id = params.id;
|
||||||
|
|
||||||
|
return <div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
}
|
||||||
@@ -8,6 +8,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 ValidationErrorPage from "./pages/waitValidationPage/ValidationErrorPage.jsx";
|
import ValidationErrorPage from "./pages/waitValidationPage/ValidationErrorPage.jsx";
|
||||||
|
import VolunteerProfilePage from "./pages/VolunteerProfile/VolunteerProfilePage.jsx";
|
||||||
|
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
@@ -45,6 +46,10 @@ const router = createBrowserRouter([
|
|||||||
{
|
{
|
||||||
path: "/volunteers",
|
path: "/volunteers",
|
||||||
Component: VolunteersPage,
|
Component: VolunteersPage,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/profile/:id",
|
||||||
|
Component: VolunteerProfilePage,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user