-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tsx
More file actions
23 lines (22 loc) · 822 Bytes
/
main.tsx
File metadata and controls
23 lines (22 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { createRoot } from "react-dom/client";
import { ChakraProvider } from "@chakra-ui/react";
import AppRouter from "./config/React-Router-Domm.tsx";
import { ThemeConfig } from "./config/chakra-theme.ts";
import { Provider } from "react-redux";
import "./assets/css/fonts.css";
import "./assets/css/scrollbar.css";
import { store } from "./stores/store.ts";
import "../src/lib/api-v1.ts";
import { ToastContainer } from "react-toastify";
import React from "react";
createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<Provider store={store}>
<ChakraProvider theme={ThemeConfig}>
<ToastContainer position="top-center" autoClose={2000} draggable style={{ width: "80%" }} />
<AppRouter></AppRouter>
</ChakraProvider>
</Provider>
,
</React.StrictMode>,
);