55 lines
1.3 KiB
JavaScript
55 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import {
|
|
createBrowserRouter,
|
|
RouterProvider,
|
|
} from "react-router-dom";
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { store } from './store/store';
|
|
import './index.css';
|
|
import App from './App';
|
|
import reportWebVitals from './reportWebVitals';
|
|
import Devices from './components/Devices';
|
|
import TestAnalytics from './components/TestAnalytics';
|
|
import WorldMap from './components/WorldMap';
|
|
import RegistraionChart from './RegistraionChart';
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: "/",
|
|
element: <App />,
|
|
},
|
|
{
|
|
path: "/testgraphs",
|
|
element: <Devices />,
|
|
},
|
|
{
|
|
path: "/tests/insights",
|
|
element: <Devices />,
|
|
},
|
|
{
|
|
path: "/analytics",
|
|
element: <TestAnalytics />,
|
|
},
|
|
{
|
|
path: "/map",
|
|
element: <RegistraionChart />,
|
|
}
|
|
]);
|
|
|
|
|
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
root.render(
|
|
<Provider store={store}>
|
|
{/* <CssBaseline /> */}
|
|
{/* <RouterProvider router={router} /> */}
|
|
<App />
|
|
</Provider>
|
|
);
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
reportWebVitals();
|