fix pages

This commit is contained in:
karimalden 2024-08-11 16:08:41 +03:00
parent 0a31a3e5ad
commit 71f743a7a8
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
import React from "react";
import { useNavigate } from "react-router-dom";
import ProtectedRouteProvider from "../../lib/ProtectedRouteProvider";
function NotFoundPage() {
const navigate = useNavigate();
return (
<div className="not_found_page">
<ProtectedRouteProvider className="not_found_page">
<div className="container-not-found">
<p>
404 <h6>|</h6>This page could not be found
@ -14,7 +15,7 @@ function NotFoundPage() {
<button onClick={() => navigate("/", { replace: true })}>Home</button>
</div>
</div>
</div>
</ProtectedRouteProvider>
);
}