2024-01-28 03:50:31 +03:00
|
|
|
import React from "react";
|
|
|
|
import {createRoot} from "react-dom/client";
|
2024-01-28 21:17:45 +03:00
|
|
|
import store from "./redux/index";
|
2024-01-28 04:03:41 +03:00
|
|
|
import General from "./general/index";
|
2024-01-28 21:17:45 +03:00
|
|
|
import { ThemeProvider, createTheme } from "@mui/material/styles";
|
|
|
|
import {Provider} from "react-redux";
|
2024-01-28 03:50:31 +03:00
|
|
|
|
|
|
|
const rootDom = document.createElement("div");
|
2024-01-28 21:17:45 +03:00
|
|
|
rootDom.classList.add("root")
|
2024-01-28 03:50:31 +03:00
|
|
|
document.body.appendChild(rootDom);
|
|
|
|
|
|
|
|
const root = createRoot(rootDom);
|
|
|
|
|
2024-01-28 04:03:41 +03:00
|
|
|
root.render(<Application/>);
|
|
|
|
|
2024-01-28 21:17:45 +03:00
|
|
|
const theme = createTheme({
|
|
|
|
typography:{
|
|
|
|
fontFamily: "ubuntu"
|
|
|
|
}
|
|
|
|
});
|
2024-01-28 04:03:41 +03:00
|
|
|
|
|
|
|
function Application()
|
|
|
|
{
|
2024-01-28 21:17:45 +03:00
|
|
|
return <Provider store={store}>
|
|
|
|
<ThemeProvider theme={theme}>
|
|
|
|
<General />
|
|
|
|
</ThemeProvider>
|
|
|
|
</Provider>
|
2024-01-28 04:03:41 +03:00
|
|
|
}
|