Fixed minor typos

This commit is contained in:
Hugo Bernier 2021-01-28 11:12:53 -05:00
parent c86f55b41f
commit 86ddd70b78
3 changed files with 14 additions and 8 deletions

View File

@ -1,13 +1,21 @@
# React-mgtEvents
## Summary
This sample shows how to use Microsoft Graph Toolkit in SPFx and custom with Fluent UI Fabric Controls
## ScreenShots
![mgtEvents](./assets/mhtEvents.JPG)
## Used SharePoint Framework Version
![SPFx 1.11.0](https://img.shields.io/badge/spfx-1.11.0-green.svg)
## Compatibility
![SPFx 1.11](https://img.shields.io/badge/SPFx-1.11.0-green.svg)
![Node.js LTS 10.x](https://img.shields.io/badge/Node.js-LTS%2010.x-green.svg)
![SharePoint Online](https://img.shields.io/badge/SharePoint-Online-yellow.svg)
![Teams Personal App | Tab](https://img.shields.io/badge/Teams-Personal%20App%20%7C%20Tab-green.svg "Untested with Microsoft Teams")
![Workbench Hosted: Does not work with local workbench](https://img.shields.io/badge/Workbench-Hosted-yellow.svg "Does not work with local workbench")
## Applies to
@ -29,6 +37,7 @@ Version|Date|Comments
1.0|November 29, 2020|Initial release
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
---

View File

@ -6,18 +6,14 @@
"supportsThemeVariants": true,
"supportsFullBleed": true,
// The "*" signifies that the version should be taken from the package.json
"version": "*",
"manifestVersion": 2,
// If true, the component can only be installed on sites where Custom Script is allowed.
// Components that allow authors to embed arbitrary script code should set this to true.
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
"requiresCustomScript": false,
"supportedHosts": ["SharePointWebPart", "SharePointFullPage","TeamsPersonalApp","TeamsTab"],
"preconfiguredEntries": [{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Other
"groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": { "default": "Other" },
"title": { "default": "mgtEvents" },
"description": { "default": "mgtEvents description" },

View File

@ -76,7 +76,8 @@ export default class MgtEventsWebPart extends BaseClientSideWebPart<IMgtEventsWe
protected get disableReactivePropertyChanges():boolean {
return true;
}
// Apply btheme id in Teams
// Apply theme id in Teams
private _applyTheme = (theme: string): void => {
this.context.domElement.setAttribute("data-theme", theme);
document.body.setAttribute("data-theme", theme);