config for oauth
This commit is contained in:
18
src/index.js
18
src/index.js
@@ -2,12 +2,18 @@ import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "./App";
|
||||
import AuthProvider from "./AuthProvider";
|
||||
import {config} from "./confs/appConfig";
|
||||
|
||||
//ReactDOM.render(<App />, document.getElementById("root"));
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById("root"));
|
||||
root.render(
|
||||
<AuthProvider>
|
||||
<App />
|
||||
</AuthProvider>
|
||||
);
|
||||
const initializeApp = async () => {
|
||||
await config();
|
||||
const root = ReactDOM.createRoot(document.getElementById("root"));
|
||||
root.render(
|
||||
<AuthProvider>
|
||||
<App />
|
||||
</AuthProvider>
|
||||
);
|
||||
}
|
||||
|
||||
initializeApp();
|
||||
Reference in New Issue
Block a user