Files
hpos-web/src/index.js

55 lines
1.3 KiB
JavaScript
Raw Normal View History

import React from 'react';
import ReactDOM from 'react-dom/client';
2023-07-20 09:17:22 +05:30
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';
2023-07-27 10:31:15 +05:30
import WorldMap from './components/WorldMap';
import RegistraionChart from './RegistraionChart';
2023-07-20 09:17:22 +05:30
const router = createBrowserRouter([
{
path: "/",
element: <App />,
},
{
path: "/testgraphs",
element: <Devices />,
},
{
2023-07-25 20:13:50 +05:30
path: "/tests/insights",
element: <Devices />,
},
{
path: "/analytics",
element: <TestAnalytics />,
2023-07-27 10:31:15 +05:30
},
{
path: "/map",
element: <RegistraionChart />,
2023-07-20 09:17:22 +05:30
}
]);
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();