From e8fad94a46c937dbb4a1d9feba4bf04ac82746f3 Mon Sep 17 00:00:00 2001 From: Syed Moazam Ali <107930498+MoazamAli45@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:58:34 +0500 Subject: [PATCH 1/3] Custom 404 Page Added --- src/App.jsx | 20 +++++++++++--------- src/components/NotFound.jsx | 31 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 src/components/NotFound.jsx diff --git a/src/App.jsx b/src/App.jsx index 059a4db..ec5e303 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,12 +1,13 @@ // import React from 'react'; -import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; -import Header from './components/Header'; -import Home from './components/Home'; -import Appointments from './components/Appointments'; -import Patients from './components/Patients'; -import Doctors from './components/Doctors'; -import Admin from './components/Admin'; -import Footer from './components/Footer'; +import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import Header from "./components/Header"; +import Home from "./components/Home"; +import Appointments from "./components/Appointments"; +import Patients from "./components/Patients"; +import Doctors from "./components/Doctors"; +import Admin from "./components/Admin"; +import Footer from "./components/Footer"; +import NotFound from "./components/NotFound"; function App() { return ( @@ -20,6 +21,8 @@ function App() { } /> } /> } /> + {/* Catching All other routes */} + } />