diff options
author | 2022-07-19 14:56:23 +0200 | |
---|---|---|
committer | 2022-07-19 14:56:23 +0200 | |
commit | cebc474bd5806571a1b7bf8717ab70d971a12405 (patch) | |
tree | db96cfb9ee5c530014e6817484fbd58ac68fc484 /src/App.tsx | |
parent | Simplify Navigation Component (diff) |
Add 404 Page
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/App.tsx')
-rw-r--r-- | src/App.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/App.tsx b/src/App.tsx index 5430e40..70e0b11 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,6 +10,7 @@ import { PropagateLoader } from "react-spinners"; import { CSSTransition, TransitionGroup } from "react-transition-group"; import globalStyles from "./globalStyles"; +import NotFound from "./pages/NotFound"; const LandingPage = React.lazy(() => import("./pages/LandingPage")); const FormPage = React.lazy(() => import("./pages/FormPage/FormPage")); @@ -41,6 +42,7 @@ function Routing(): JSX.Element { return ( <Routes location={location}> {renderedRoutes} + <Route path="*" element={<NotFound message={"404: This page does not exist"}/>}/> </Routes> ); } |