Skip to content

Commit

Permalink
fix: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Jul 29, 2023
1 parent 817f384 commit b39327a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable import/first */
import {
init,
events,
vitals,
init,
measure,
network,
profiler,
vitals,
} from "@palette.dev/browser";

init({
Expand All @@ -23,13 +23,13 @@ window.addEventListener("load", () => {
profiler.stop();
});

import React from "react";
import ReactDOM from "react-dom";
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import { register } from "./serviceWorker";
import "./build.css";
import { register } from "./serviceWorker";

if (process.env.NODE_ENV === "production") {
Sentry.init({
Expand All @@ -41,11 +41,11 @@ if (process.env.NODE_ENV === "production") {
}

const rootElement = document.getElementById("root");
ReactDOM.render(
const root = createRoot(rootElement);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
rootElement
</React.StrictMode>
);

register();

0 comments on commit b39327a

Please sign in to comment.