-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
30 lines (27 loc) · 1.06 KB
/
App.tsx
File metadata and controls
30 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import { HashRouter, Routes, Route, Navigate } from 'react-router-dom';
import { Home } from './pages/Home';
import { CreateIncident } from './pages/CreateIncident';
import { IncidentDashboard } from './pages/IncidentDashboard';
import { PublicSubmit } from './pages/PublicSubmit';
import { DesignNotes } from './pages/DesignNotes';
import { NetworkStatus } from './components/pwa/NetworkStatus';
import { PWAInstallPrompt } from './components/pwa/PWAInstallPrompt';
const App: React.FC = () => {
return (
<HashRouter>
{/* PWA Components - Global */}
<NetworkStatus />
<PWAInstallPrompt />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/create" element={<CreateIncident />} />
<Route path="/incident/:id" element={<IncidentDashboard />} />
<Route path="/submit/:id" element={<PublicSubmit />} />
<Route path="/design" element={<DesignNotes />} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
</HashRouter>
);
};
export default App;