Skip to content

Commit

Permalink
Add not found page (#128)
Browse files Browse the repository at this point in the history
* Added NotFound page to the router
  • Loading branch information
Taks07 authored Aug 20, 2024
1 parent e1b9526 commit e4829d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {BrowserRouter, Navigate, Route, Routes} from 'react-router-dom';
import Login from './pages/Login';
import Signup from './pages/Signup';
import Dashboard from './pages/Dashboard';
import NotFound from './pages/NotFound';
import axios from 'axios';
import { TransactionContextProvider } from './context/TransactionContextProvider.jsx';

Expand All @@ -28,6 +29,7 @@ function App() {
<Dashboard />
</TransactionContextProvider> // context provider gives access to the context in the dashboard
} />
<Route path="*" element={<NotFound />} />
</Routes>
</BrowserRouter>
);
Expand Down

0 comments on commit e4829d7

Please sign in to comment.