SolarEnergy/central_frontend/src/main.tsx

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-06-29 11:01:50 +00:00
import "@fontsource/roboto/300.css";
import "@fontsource/roboto/400.css";
import "@fontsource/roboto/500.css";
import "@fontsource/roboto/700.css";
2024-06-29 11:26:12 +00:00
import React from "react";
import ReactDOM from "react-dom/client";
import { App } from "./App";
import { AlertDialogProvider } from "./hooks/context_providers/AlertDialogProvider";
import { ConfirmDialogProvider } from "./hooks/context_providers/ConfirmDialogProvider";
import { DarkThemeProvider } from "./hooks/context_providers/DarkThemeProvider";
import { LoadingMessageProvider } from "./hooks/context_providers/LoadingMessageProvider";
import { SnackbarProvider } from "./hooks/context_providers/SnackbarProvider";
import "./index.css";
2024-06-29 11:01:50 +00:00
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
2024-06-29 11:26:12 +00:00
<DarkThemeProvider>
<AlertDialogProvider>
<ConfirmDialogProvider>
<SnackbarProvider>
<LoadingMessageProvider>
<App />
</LoadingMessageProvider>
</SnackbarProvider>
</ConfirmDialogProvider>
</AlertDialogProvider>
</DarkThemeProvider>
2024-06-29 11:01:50 +00:00
</React.StrictMode>
);