2020-12-19 03:38:04 +02:00
|
|
|
import React, { Suspense } from "react";
|
2020-12-08 02:41:21 +02:00
|
|
|
import ReactDOM from "react-dom";
|
2023-03-04 21:06:49 +02:00
|
|
|
import ThemeProvider from "./providers/ThemeProvider";
|
2023-03-03 08:48:10 +02:00
|
|
|
import CssBaseline from "@material-ui/core/CssBaseline";
|
2023-04-15 00:07:15 +03:00
|
|
|
import AppRouter from "./components/AppRouter";
|
2023-02-15 01:25:18 +02:00
|
|
|
import { TuitioProvider } from "@flare/tuitio-client-react";
|
2023-04-15 00:07:15 +03:00
|
|
|
import { ToastProvider } from "./providers";
|
2023-05-06 12:22:00 +03:00
|
|
|
import env from "./utils/env";
|
2023-03-03 18:56:30 +02:00
|
|
|
import "./utils/i18n";
|
2020-12-08 02:05:31 +02:00
|
|
|
|
|
|
|
ReactDOM.render(
|
2023-05-06 12:22:00 +03:00
|
|
|
<TuitioProvider tuitioUrl={env.REACT_APP_TUITIO_URL}>
|
2023-03-05 00:49:07 +02:00
|
|
|
<ThemeProvider>
|
|
|
|
<CssBaseline />
|
2023-04-15 00:07:15 +03:00
|
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
|
|
<ToastProvider>
|
|
|
|
<AppRouter />
|
|
|
|
</ToastProvider>
|
|
|
|
</Suspense>
|
2023-03-05 00:49:07 +02:00
|
|
|
</ThemeProvider>
|
2023-03-03 08:48:10 +02:00
|
|
|
</TuitioProvider>,
|
2020-12-08 02:41:21 +02:00
|
|
|
document.getElementById("root")
|
2020-12-08 02:05:31 +02:00
|
|
|
);
|