From cebc474bd5806571a1b7bf8717ab70d971a12405 Mon Sep 17 00:00:00 2001
From: Hassan Abouelela <hassan@hassanamr.com>
Date: Tue, 19 Jul 2022 14:56:23 +0200
Subject: Add 404 Page

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
---
 src/App.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/App.tsx')

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>
     );
 }
-- 
cgit v1.2.3

