-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathindex.js
37 lines (29 loc) · 1.08 KB
/
index.js
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
/**
=========================================================
* Soft UI Dashboard React - v4.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-react
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
Coded by www.creative-tim.com
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import App from "App";
import { AuthProvider } from "./auth-context/auth.context";
// Soft UI Dashboard React Context Provider
import { SoftUIControllerProvider } from "context";
let user = localStorage.getItem("user");
user = JSON.parse(user);
ReactDOM.render(
<BrowserRouter>
<SoftUIControllerProvider>
<AuthProvider userData={user}>
<App />
</AuthProvider>
</SoftUIControllerProvider>
</BrowserRouter>,
document.getElementById("root")
);