mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { Routes ,Route } from 'react-router-dom';
|
|
import { BrowserRouter } from "react-router-dom";
|
|
import { Provider } from 'react-redux'
|
|
import configureStore, { history } from './redux-router/configureStore'
|
|
|
|
import 'semantic-ui-css/semantic.min.css'
|
|
|
|
// withTracker
|
|
//import withTracker from './withTracker';
|
|
|
|
// Main
|
|
import Main from "./Main/Main"
|
|
|
|
// System
|
|
import ListSystems from "./System/ListSystems"
|
|
|
|
// Call
|
|
import CallPlayer from "./Call/CallPlayer"
|
|
|
|
import AboutComponent from "./About/AboutComponent"
|
|
|
|
|
|
const store = configureStore(/* provide initial state if any */)
|
|
|
|
const container = document.getElementById('root');
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<Provider store={store}>
|
|
<BrowserRouter>
|
|
<Routes>
|
|
<Route exact path="/" element={<Main/>} />
|
|
<Route exact path="/systems" element={<ListSystems/>} />
|
|
<Route exact path="/system/:shortName" element={<CallPlayer/>} />
|
|
<Route exact path="/about" element={<AboutComponent/>} />
|
|
|
|
</Routes>
|
|
</BrowserRouter>
|
|
</Provider>
|
|
) |