From fe773beed70e1ee2cc9cfcd32827c8316c033999 Mon Sep 17 00:00:00 2001 From: Sathwik Hejamady Bhat Date: Fri, 24 Oct 2025 18:08:23 +0530 Subject: [PATCH] feat: add custom 404 NotFound component and route (fixes #162) --- frontend/src/App.jsx | 2 ++ frontend/src/pages/NotFound.jsx | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 frontend/src/pages/NotFound.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 3ba7157..c45c3fc 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -9,6 +9,7 @@ import TransactionsPage from './pages/TransactionsPage'; import ReceiptsPage from './pages/ReceiptsPage'; import WelcomePage from './pages/WelcomePage'; import SettingsPage from './pages/SettingsPage'; +import NotFound from './pages/NotFound'; import Budgets from './pages/Budgets'; import ContactUs from './pages/ContactUs'; import Layout from './components/Layout'; @@ -52,6 +53,7 @@ function App() { element={} /> + } /> diff --git a/frontend/src/pages/NotFound.jsx b/frontend/src/pages/NotFound.jsx new file mode 100644 index 0000000..b23069f --- /dev/null +++ b/frontend/src/pages/NotFound.jsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import ThemeToggle from '../components/ThemeToggle'; + +export default function NotFound() { + return ( +
+
+ Paisable +
+ +
+
+ +
+
+
+ + + + +
+ +

Page not found

+

+ Oops — the page you're looking for doesn't exist or has been moved. +

+ +
+ + Go to Homepage + + + Contact Support + +
+
+
+
+ ); +}