Skip to content

Commit

Permalink
adding route to map site
Browse files Browse the repository at this point in the history
  • Loading branch information
BesOlivierBouchard committed Mar 23, 2024
1 parent f5b8c8d commit 869d8bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions canopeum_frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Analytics from './pages/Analytics';
import Home from './pages/Home';
import Login from './pages/Login';
import Map from './pages/Map';
import MapSite from './pages/MapSite';
import UserManagement from './pages/UserManagement';
import Utilities from './pages/Utilities';

Expand All @@ -19,6 +20,7 @@ const App = () => (
<Route element={<Home />} path="/" />
<Route element={<Analytics />} path="/analytics" />
<Route element={<Map />} path="/map" />
<Route element={<MapSite />} path='/map/:siteId'/>
<Route element={<UserManagement />} path="/user-management" />
<Route element={<Login />} path="/login" />
<Route element={<Utilities />} path="/utilities" />
Expand Down
12 changes: 12 additions & 0 deletions canopeum_frontend/src/pages/MapSite.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { useParams } from 'react-router-dom'

const MapSite = () => {
const { siteId } = useParams();

return (
<div>
<h1>Map Site</h1>
</div>
)
}
export default MapSite

0 comments on commit 869d8bb

Please sign in to comment.