network-resurrector/src/index.js

26 lines
856 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";
2020-12-19 03:38:04 +02:00
import App from "./components/App";
2023-02-15 01:25:18 +02:00
import { TuitioProvider } from "@flare/tuitio-client-react";
2023-03-03 08:48:10 +02:00
import ApplicationStateProvider from "./providers/ApplicationStateProvider";
import ToastProvider from "./providers/ToastProvider";
2023-03-03 18:56:30 +02:00
import "./utils/i18n";
ReactDOM.render(
2023-03-03 08:48:10 +02:00
<TuitioProvider tuitioUrl={process.env.REACT_APP_TUITIO_URL}>
<ApplicationStateProvider>
<ThemeProvider>
2023-03-03 18:56:30 +02:00
<CssBaseline />
<Suspense fallback={<div>Loading...</div>}>
<ToastProvider>
<App />
</ToastProvider>
</Suspense>
</ThemeProvider>
2023-03-03 08:48:10 +02:00
</ApplicationStateProvider>
</TuitioProvider>,
2020-12-08 02:41:21 +02:00
document.getElementById("root")
);