forked from N4si/DevSecOps-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tsx
32 lines (29 loc) · 1 KB
/
main.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
31
32
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import "./CustomClassNameSetup";
import React from "react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import { RouterProvider } from "react-router-dom";
import { createTheme, ThemeProvider } from "@mui/material/styles";
import store from "./store";
import { extendedApi } from "./store/slices/configuration";
import palette from "./theme/palette";
import router from "./routes";
import MainLoadingScreen from "./components/MainLoadingScreen";
store.dispatch(extendedApi.endpoints.getConfiguration.initiate(undefined));
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<Provider store={store}>
<React.StrictMode>
<ThemeProvider theme={createTheme({ palette })}>
<RouterProvider
router={router}
fallbackElement={<MainLoadingScreen />}
/>
</ThemeProvider>
</React.StrictMode>
</Provider>
);