Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Rework Conditions.tsx and ConditionsMap.tsx
Browse files Browse the repository at this point in the history
- Move topbar in the Conditions.tx
- Move css import in right files
- Optimize and simplify ConditionsMap.tsx
Cleanup page files
- Rename Main and Inspect
- Remove unused
- Align backend calls
  • Loading branch information
Seb-sti1 committed Nov 4, 2023
1 parent e77bbc6 commit c43a05d
Show file tree
Hide file tree
Showing 15 changed files with 349 additions and 436 deletions.
16 changes: 10 additions & 6 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
import { FC } from 'react';
import { BrowserRouter as Router, Navigate } from 'react-router-dom';
import {
BrowserRouter as Router,
Navigate,
Route,
Routes,
} from 'react-router-dom';

import './App.css';
import { Route, Routes } from 'react-router-dom';
import RoadDetails from './pages/RoadDetails';
import Inspect from './pages/Inspect';

import Conditions from './pages/Conditions';
import Main from './pages/Main';

const App: FC = () => {
return (
<div className="App">
<Router>
<Routes>
<Route index element={<Navigate to="/map" replace />} />
<Route path="/map" element={<Conditions />} />
<Route path="/road-details" element={<RoadDetails />} />
<Route path="/map" element={<Main />} />
<Route path="/road-details" element={<Inspect />} />
</Routes>
</Router>
</div>
Expand Down
Loading

0 comments on commit c43a05d

Please sign in to comment.