blob: e0bc61b9ac6014d504ebdac34c788a8f83867584 [file] [log] [blame]
idillond858c182022-09-16 13:18:26 -04001"use strict";
idillon5e897432022-09-16 13:28:09 -04002import "./index.scss";
idillond858c182022-09-16 13:18:26 -04003import React from "react";
4import ReactDOM from "react-dom";
idillond858c182022-09-16 13:18:26 -04005import App from "./App.js";
idillond858c182022-09-16 13:18:26 -04006import { store } from "../redux/store";
7import { Provider } from "react-redux";
idillon5e897432022-09-16 13:28:09 -04008import { BrowserRouter as Router } from "react-router-dom";
Larbi Gharibe9af9732021-03-31 15:08:01 +01009
idillon8e6c0062022-09-16 13:34:43 -040010// import config from "../sentry-client.config.json"
idillon5e897432022-09-16 13:28:09 -040011import * as Sentry from "@sentry/react";
12import { BrowserTracing } from "@sentry/tracing";
13
14//import { CssBaseline } from '@mui/material'
idillond858c182022-09-16 13:18:26 -040015//import * as serviceWorker from './serviceWorker'
idillon5e897432022-09-16 13:28:09 -040016
idillond858c182022-09-16 13:18:26 -040017const rootEl = document.getElementById("root");
18var exports = {};
19
idillon8e6c0062022-09-16 13:34:43 -040020// Sentry.init({
21// ...config,
22// integrations: [new BrowserTracing()],
23// });
idillon5e897432022-09-16 13:28:09 -040024
idillond858c182022-09-16 13:18:26 -040025const render = (Component) =>
26 ReactDOM.render(
27 <Provider store={store}>
28 <React.StrictMode>
29 <Router>
30 <Component />
31 </Router>
32 </React.StrictMode>
33 </Provider>,
34 rootEl
35 );
Larbi Gharibe9af9732021-03-31 15:08:01 +010036
Adrien Bérauda2bf6fd2021-04-08 01:06:37 -040037render(App)
Adrien Béraude74741b2021-04-19 13:22:54 -040038
idillond858c182022-09-16 13:18:26 -040039if (import.meta.webpackHot)
40 import.meta.webpackHot.accept("./App", () => {
41 try {
42 render(App);
43 } catch (e) {
44 location.reload();
45 }
46 });