Skip to content

Commit 5cfa072

Browse files
panjkovVesaJuvonen
authored andcommitted
Update using-web-part-as-ms-teams-tab.md (SharePoint#3258)
typos
1 parent bb09cd5 commit 5cfa072

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Teams folder contains following three files:
9494
9595
## Updating code to be aware of the Microsoft Teams context
9696
97-
1. Open **src\webparts\myFirstTeamTab\MyFirstTeamTabWebPart.ts** for the needed edits on making our solution aware of the Microsoft Teams context, if it's used as a tab.
97+
1. Open **src\webparts\myFirstTeamsTab\MyFirstTeamsTabWebPart.ts** for the needed edits on making our solution aware of the Microsoft Teams context, if it's used as a tab.
9898
9999
1. Add the following private variable inside the **MyFirstTeamsTabWebPart** class. We will be storing information around the Microsoft Teams context in this variable.
100100
@@ -122,7 +122,7 @@ Teams folder contains following three files:
122122
}
123123
```
124124
125-
1. Update the **render** method as follows. Notice how we are rendering different content dependent if the code is rendered as a tab in Microsoft Team or as a web part in SharePoint.
125+
1. Update the **render** method as follows. Notice how we are rendering different content dependent if the code is rendered as a tab in Microsoft Teams or as a web part in SharePoint.
126126
127127
```typescript
128128
public render(): void {
@@ -132,17 +132,17 @@ Teams folder contains following three files:
132132
let siteTabTitle: string = '';
133133
134134
if (this._teamsContext) {
135-
// We have teams context for the web part
135+
// We have Teams context for the web part
136136
title = "Welcome to Teams!";
137137
subTitle = "Building custom enterprise tabs for your business.";
138-
siteTabTitle = "We are in the context of following Team: " + this._teamsContext.teamName;
138+
siteTabTitle = "We are in the context of following Teams team: " + this._teamsContext.teamName;
139139
}
140140
else
141141
{
142142
// We are rendered in normal SharePoint context
143143
title = "Welcome to SharePoint!";
144144
subTitle = "Customize SharePoint experiences using Web Parts.";
145-
siteTabTitle = "We are in the context of following site: " + this.context.pageContext.web.title;
145+
siteTabTitle = "We are in the context of following SharePoint site: " + this.context.pageContext.web.title;
146146
}
147147
148148
this.domElement.innerHTML = `

0 commit comments

Comments
 (0)