Skip to content

Commit 07f3b9e

Browse files
kaustubh-darekarkartikpersistent
authored andcommitted
removed debugging react strict mode
1 parent 6110c35 commit 07f3b9e

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

frontend/src/main.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ import ReactDOM from 'react-dom/client';
22
import './index.css';
33
import { BrowserRouter } from 'react-router-dom';
44
import Auth0ProviderWithHistory from './components/Auth/Auth.tsx';
5-
import React from 'react';
5+
//import React from 'react';
66
import App from './App.tsx';
77
import { SKIP_AUTH } from './utils/Constants.ts';
88

99
ReactDOM.createRoot(document.getElementById('root')!).render(
10-
<React.StrictMode>
11-
<BrowserRouter>
12-
{SKIP_AUTH ? (
10+
<BrowserRouter>
11+
{SKIP_AUTH ? (
12+
<App />
13+
) : (
14+
<Auth0ProviderWithHistory>
1315
<App />
14-
) : (
15-
<Auth0ProviderWithHistory>
16-
<App />
17-
</Auth0ProviderWithHistory>
18-
)}
19-
</BrowserRouter>
20-
</React.StrictMode>
16+
</Auth0ProviderWithHistory>
17+
)}
18+
</BrowserRouter>
2119
);

0 commit comments

Comments
 (0)