mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
It might be working
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { Provider } from 'react-redux'
|
||||
import { Routes ,Route } from 'react-router-dom';
|
||||
import { ConnectedRouter } from 'connected-react-router'
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import { Provider } from 'react-redux'
|
||||
import configureStore, { history } from './redux-router/configureStore'
|
||||
import ReactGA from 'react-ga';
|
||||
|
||||
|
||||
import 'semantic-ui-css/semantic.min.css'
|
||||
/*
|
||||
|
||||
// withTracker
|
||||
import withTracker from './withTracker';
|
||||
//import withTracker from './withTracker';
|
||||
|
||||
// Main
|
||||
import MainContainer from "./Main/MainContainer"
|
||||
@@ -22,26 +19,22 @@ import ListSystemsContainer from "./System/ListSystemsContainer"
|
||||
// Call
|
||||
import CallPlayerContainer from "./Call/CallPlayerContainer"
|
||||
|
||||
import AboutComponent from "./About/AboutComponent"*/
|
||||
import AboutComponent from "./About/AboutComponent"
|
||||
|
||||
ReactGA.initialize(process.env.REACT_APP_GOOGLE_ANALYTICS);
|
||||
|
||||
const store = configureStore(/* provide initial state if any */)
|
||||
const container = document.getElementById('root');
|
||||
const root = createRoot(container);
|
||||
root.render(
|
||||
<Provider store={store}>
|
||||
<ConnectedRouter history={history}> { /* place ConnectedRouter under Provider */ }
|
||||
<> { /* your usual react-router v4/v5 routing */ }
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
{/*
|
||||
<Route exact path="/" component={withTracker(MainContainer)} />
|
||||
<Route exact path="/systems" component={withTracker(ListSystemsContainer)} />
|
||||
<Route exact path="/system/:shortName" component={withTracker(CallPlayerContainer)} />
|
||||
<Route exact path="/about" component={withTracker(AboutComponent)} />*/}
|
||||
<Route render={() => (<div>Miss</div>)} />
|
||||
<Route exact path="/" element={<MainContainer/>} />
|
||||
<Route exact path="/systems" element={<ListSystemsContainer/>} />
|
||||
<Route exact path="/system/:shortName" element={<CallPlayerContainer/>} />
|
||||
<Route exact path="/about" element={<AboutComponent/>} />
|
||||
|
||||
</Routes>
|
||||
</>
|
||||
</ConnectedRouter>
|
||||
</BrowserRouter>
|
||||
</Provider>
|
||||
)
|
||||
Reference in New Issue
Block a user