Create PageNotFound.jsx
This commit is contained in:
1 parent
1ee31e6fd8
commit
fa9298a334
3 files changed
+15
No files matched your search
@@ -0,0 +1,10 @@
|
|||||||
|
import Background from "../../components/background/background.jsx";
|
||||||
|
|
||||||
|
export default function PageNotFound() {
|
||||||
|
|
||||||
|
return <Background>
|
||||||
|
|
||||||
|
<h1>404</h1>
|
||||||
|
|
||||||
|
</Background>
|
||||||
|
}
|
||||||
Whitespace-only changes.
@@ -9,6 +9,7 @@ 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";
|
import VolunteerProfilePage from "./pages/VolunteerProfile/VolunteerProfilePage.jsx";
|
||||||
|
import PageNotFound from "./pages/PageNotFound/PageNotFound.jsx";
|
||||||
|
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
@@ -23,6 +24,10 @@ const router = createBrowserRouter([
|
|||||||
path: "/error/validation",
|
path: "/error/validation",
|
||||||
Component: ValidationErrorPage
|
Component: ValidationErrorPage
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/*",
|
||||||
|
Component: PageNotFound,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
Component: Layout,
|
Component: Layout,
|
||||||
|
|||||||
Reference in new issue
Block a user