36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import "@hookstate/devtools";
|
|
import React from "react";
|
|
import {createRoot} from "react-dom/client";
|
|
import App from "./App";
|
|
import reportWebVitals from "./reportWebVitals";
|
|
import "react-toastify/dist/ReactToastify.min.css";
|
|
import "./styles/typography.css";
|
|
import "./styles/videoBackground.css";
|
|
import "./styles/overrides.css";
|
|
import "react-responsive-carousel/lib/styles/carousel.min.css";
|
|
import {Router} from "react-router-dom";
|
|
import {createBrowserHistory} from "history";
|
|
import {ChakraProvider, ColorModeScript} from "@chakra-ui/react";
|
|
import theme from "./styles/theme";
|
|
|
|
export const history = createBrowserHistory();
|
|
|
|
const container = document.getElementById("root");
|
|
const root = createRoot(container!);
|
|
|
|
root.render(
|
|
<React.StrictMode>
|
|
<Router history={history}>
|
|
<ChakraProvider theme={theme}>
|
|
<ColorModeScript initialColorMode={theme.config.initialColorMode}/>
|
|
<App/>
|
|
</ChakraProvider>
|
|
</Router>
|
|
</React.StrictMode>
|
|
);
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
reportWebVitals();
|