fix pages
This commit is contained in:
parent
0a31a3e5ad
commit
71f743a7a8
|
|
@ -1,10 +1,11 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import ProtectedRouteProvider from "../../lib/ProtectedRouteProvider";
|
||||||
|
|
||||||
function NotFoundPage() {
|
function NotFoundPage() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
return (
|
return (
|
||||||
<div className="not_found_page">
|
<ProtectedRouteProvider className="not_found_page">
|
||||||
<div className="container-not-found">
|
<div className="container-not-found">
|
||||||
<p>
|
<p>
|
||||||
404 <h6>|</h6>This page could not be found
|
404 <h6>|</h6>This page could not be found
|
||||||
|
|
@ -14,7 +15,7 @@ function NotFoundPage() {
|
||||||
<button onClick={() => navigate("/", { replace: true })}>Home</button>
|
<button onClick={() => navigate("/", { replace: true })}>Home</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</ProtectedRouteProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user