aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.tsx
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-07-19 17:53:13 +0400
committerGravatar GitHub <[email protected]>2022-07-19 17:53:13 +0400
commit6323d91ad9ebd4500a409fd1d5bdff988833e944 (patch)
treedb96cfb9ee5c530014e6817484fbd58ac68fc484 /src/App.tsx
parentClear Authorization On Error (diff)
parentAdd 404 Page (diff)
Merge pull request #485 from python-discord/404
Add 404 Handlers
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx2
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>
);
}