From 2181bcc9b3d53370e792f8cbd08c94d9361affff Mon Sep 17 00:00:00 2001 From: fadeelah2007 Date: Fri, 24 Jul 2026 22:07:32 +0100 Subject: [PATCH] feat(frontend): add 404 catch-all route and NotFoundPage component --- frontend/src/App.tsx | 7 ++- frontend/src/pages/NotFoundPage.tsx | 75 +++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 frontend/src/pages/NotFoundPage.tsx diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 831f3b8..0407ff2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,6 +1,7 @@ import React from 'react' import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' import { WalletProvider } from './context/WalletContext' +import { NotFoundPage } from './pages/NotFoundPage'; import AppShell from './components/layout/AppShell' import LandingPage from './pages/LandingPage' import AgentsPage from './pages/AgentsPage' @@ -25,13 +26,15 @@ const AppContent: React.FC = () => { } /> } /> } /> + } /> } /> + } /> - ) -} + ); +}; const App: React.FC = () => { return ( diff --git a/frontend/src/pages/NotFoundPage.tsx b/frontend/src/pages/NotFoundPage.tsx new file mode 100644 index 0000000..efb8ff9 --- /dev/null +++ b/frontend/src/pages/NotFoundPage.tsx @@ -0,0 +1,75 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; + +export const NotFoundPage: React.FC = () => { + return ( +
+ +

+ 404 — Page Not Found +

+ +

+ The page you are looking for does not exist or has been moved. +

+ +
+ + + Go to Dashboard + + + + Go Home + +
+
+ ); +}; + +export default NotFoundPage; \ No newline at end of file