network-resurrector/src/index.js

24 lines
731 B
JavaScript
Raw Normal View History

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";
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";
import env from "./utils/env";
2023-03-03 18:56:30 +02:00
import "./utils/i18n";
ReactDOM.render(
<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")
);