Working ANTD5 and major updates without DayJS
This commit is contained in:
37
src/index.jsx
Normal file
37
src/index.jsx
Normal file
@@ -0,0 +1,37 @@
|
||||
//import LogRocket from "logrocket";
|
||||
import React from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { Provider } from "react-redux";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import { PersistGate } from "redux-persist/integration/react";
|
||||
import App from "./App/App";
|
||||
import "./index.css";
|
||||
import { persistor, store } from "./redux/store";
|
||||
import ReactDOM from "react-dom/client";
|
||||
|
||||
import * as Sentry from "@sentry/electron";
|
||||
|
||||
Sentry.init({
|
||||
dsn: "https://9840e0f304124299e379d9347e12d2e6@o492140.ingest.sentry.io/4505728058523648",
|
||||
integrations: [new Sentry.BrowserTracing()],
|
||||
tracesSampleRate: 1.0,
|
||||
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
|
||||
tracePropagationTargets: ["localhost", "https://db.rps.imex.online"],
|
||||
ignoreErrors: [
|
||||
"SimpleURLLoaderWrapper",
|
||||
"Cannot read properties of null (reading 'webContents')",
|
||||
"EBUSY: resource busy or locked"
|
||||
]
|
||||
});
|
||||
//if (process.env.NODE_ENV === "production") LogRocket.init("imex/rps");
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")).render(
|
||||
<Provider store={store}>
|
||||
<MemoryRouter>
|
||||
<PersistGate persistor={persistor}>
|
||||
<App />
|
||||
</PersistGate>
|
||||
</MemoryRouter>
|
||||
</Provider>
|
||||
);
|
||||
console.log("Connecting to endpoint: ", process.env.VITE_APP_GRAPHQL_ENDPOINT);
|
||||
Reference in New Issue
Block a user