-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
Copy pathindex.tsx
30 lines (26 loc) · 816 Bytes
/
index.tsx
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
/* SPDX-FileCopyrightText: 2014-present Kriasoft */
/* SPDX-License-Identifier: MIT */
import { CssBaseline, CssVarsProvider } from "@mui/joy";
import { SnackbarProvider } from "notistack";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { StoreProvider } from "./core/store";
import { theme } from "./core/theme";
import { Router } from "./routes/index";
const container = document.getElementById("root");
const root = createRoot(container!);
root.render(
<StrictMode>
<CssVarsProvider theme={theme}>
<SnackbarProvider>
<CssBaseline />
<StoreProvider>
<Router />
</StoreProvider>
</SnackbarProvider>
</CssVarsProvider>
</StrictMode>,
);
if (import.meta.hot) {
import.meta.hot.dispose(() => root.unmount());
}