-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (28 loc) · 952 Bytes
/
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
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { AppProvider } from "./context/ProductContext";
import { FilterContextProvider } from "./context/filter_context";
import { CartProvider } from "./context/cart_context";
import { Auth0Provider } from "@auth0/auth0-react";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<Auth0Provider
domain="dev-eugsa11nwmq0jdc2.us.auth0.com"
clientId="tPXCwhZhv1LMA4mMc4TFGGQuLn74OaPO"
authorizationParams={{
redirect_uri: window.location.origin
}}
>
<AppProvider>
<FilterContextProvider>
<CartProvider>
<App />
</CartProvider>
</FilterContextProvider>
</AppProvider>
</Auth0Provider>
);
reportWebVitals();