-
Notifications
You must be signed in to change notification settings - Fork 0
/
renderer.ts
22 lines (17 loc) · 1.08 KB
/
renderer.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { initializeIcons } from "@fluentui/react";
import { Client, ClientOptions } from "@microsoft/microsoft-graph-client";
import React from 'react';
import ReactDOM from 'react-dom';
import "./index.css";
import Footer, { FooterProps } from "./RendererProcess/components/Footer/Footer";
import Main, { MainProps } from './RendererProcess/components/Main/Main';
import TitleBar from "./RendererProcess/components/TitleBar/TitleBar";
import { MicrosoftAuthenticationProvider } from "./RendererProcess/MicrosoftAuthenticationProvider";
initializeIcons();
let clientOptions: ClientOptions = {
authProvider: new MicrosoftAuthenticationProvider(),
};
const MSGraphClient = Client.initWithMiddleware(clientOptions);
ReactDOM.render(React.createElement(TitleBar, { title: "ElectronJS-Custom-Boilerplate" }), document.querySelector("#TitleBar"));
ReactDOM.render(React.createElement(Main, { GraphClient: MSGraphClient } as MainProps), document.querySelector("#Main"));
ReactDOM.render(React.createElement(Footer, { text: "Created by Timo Woityschyn" } as FooterProps), document.querySelector("#Footer"));