VirtWebRemote/remote_frontend/src/main.tsx

26 lines
744 B
TypeScript
Raw Normal View History

2024-04-29 18:53:01 +00:00
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import { App } from "./App";
import {
FluentProvider,
teamsHighContrastTheme,
} from "@fluentui/react-components";
2024-05-03 20:03:25 +00:00
import { AlertDialogProvider } from "./hooks/providers/AlertDialogProvider";
import { ConfirmDialogProvider } from "./hooks/providers/ConfirmDialogProvider";
2024-04-29 18:53:01 +00:00
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<FluentProvider
theme={teamsHighContrastTheme}
style={{ display: "flex", flex: 1 }}
>
2024-05-03 20:03:25 +00:00
<AlertDialogProvider>
<ConfirmDialogProvider>
<App />
</ConfirmDialogProvider>
</AlertDialogProvider>
</FluentProvider>
2024-04-29 18:53:01 +00:00
</React.StrictMode>
);