All files / src main.tsx

0% Statements 0/18
0% Branches 0/1
100% Functions 0/0
0% Lines 0/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39                                                                             
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import config from "./config";
import { BrowserRouter } from "react-router-dom";
import { Provider } from "react-redux";
import { store } from "./store";
import posthog from "posthog-js";
import { PostHogProvider } from "posthog-js/react";
import { GlobalSnackbar } from "./components/common/GlobalSnackbar";
import { ReactFlowProvider } from "reactflow";
import "highlight.js/styles/github.min.css";
import "rsuite/DatePicker/styles/index.css";
import { AnimatePresence } from "framer-motion";
 
Iif (config.posthogEnabled === "true") {
  posthog.init("phc_DakJVaJiJMjyu764IBSgH2A4OPV57Fu8H7I8XPE09iM", {
    api_host: "https://pumpkins.drdroid.io",
    ui_host: "https://app.posthog.com",
    disable_session_recording: true,
  });
}
 
const root = ReactDOM.createRoot(document.getElementById("root")!);
root.render(
  <PostHogProvider client={posthog}>
    <ReactFlowProvider>
      <Provider store={store}>
        <BrowserRouter>
          <AnimatePresence mode="wait">
            <App />
          </AnimatePresence>
          <GlobalSnackbar />
        </BrowserRouter>
      </Provider>
    </ReactFlowProvider>
  </PostHogProvider>,
);