blob: 982f0f743feb754fbe4728ceb5458c7ee6764467 [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";
idillon5815c732022-09-16 13:54:45 -04009import './i18n';
Larbi Gharibe9af9732021-03-31 15:08:01 +010010
idillon8e6c0062022-09-16 13:34:43 -040011// import config from "../sentry-client.config.json"
idillon5e897432022-09-16 13:28:09 -040012import * as Sentry from "@sentry/react";
13import { BrowserTracing } from "@sentry/tracing";
14
15//import { CssBaseline } from '@mui/material'
idillond858c182022-09-16 13:18:26 -040016//import * as serviceWorker from './serviceWorker'
idillon5e897432022-09-16 13:28:09 -040017
idillond858c182022-09-16 13:18:26 -040018const rootEl = document.getElementById("root");
19var exports = {};
20
idillon8e6c0062022-09-16 13:34:43 -040021// Sentry.init({
22// ...config,
23// integrations: [new BrowserTracing()],
24// });
idillon5e897432022-09-16 13:28:09 -040025
idillond858c182022-09-16 13:18:26 -040026const render = (Component) =>
27 ReactDOM.render(
28 <Provider store={store}>
29 <React.StrictMode>
30 <Router>
31 <Component />
32 </Router>
33 </React.StrictMode>
34 </Provider>,
35 rootEl
36 );
Larbi Gharibe9af9732021-03-31 15:08:01 +010037
Adrien Bérauda2bf6fd2021-04-08 01:06:37 -040038render(App)
Adrien Béraude74741b2021-04-19 13:22:54 -040039
idillond858c182022-09-16 13:18:26 -040040if (import.meta.webpackHot)
41 import.meta.webpackHot.accept("./App", () => {
42 try {
43 render(App);
44 } catch (e) {
45 location.reload();
46 }
47 });