mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
Add back Google Analytics
This commit is contained in:
39
frontend/src/app.js
Normal file
39
frontend/src/app.js
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
import { Routes ,Route } from 'react-router-dom';
|
||||
import { usePageTracking } from "./tracking";
|
||||
|
||||
import 'semantic-ui-css/semantic.min.css'
|
||||
|
||||
// Main
|
||||
import Main from "./Main/Main"
|
||||
|
||||
// System
|
||||
import ListSystems from "./System/ListSystems"
|
||||
|
||||
// Call
|
||||
import Calls from "./Call/Calls"
|
||||
|
||||
import AboutComponent from "./About/AboutComponent"
|
||||
|
||||
// Event
|
||||
import ListEvents from "./Event/ListEvents"
|
||||
import ViewEvent from "./Event/ViewEvent"
|
||||
|
||||
|
||||
const App = () => {
|
||||
usePageTracking();
|
||||
|
||||
return (
|
||||
<Routes>
|
||||
<Route exact path="/" element={<Main/>} />
|
||||
<Route exact path="/systems" element={<ListSystems/>} />
|
||||
<Route exact path="/system/:shortName" element={<Calls/>} />
|
||||
<Route exact path="/events" element={<ListEvents/>} />
|
||||
<Route exact path="/events/:id" element={<ViewEvent/>} />
|
||||
<Route exact path="/about" element={<AboutComponent/>} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user