Skip to content

Commit ad653c0

Browse files
committed
Snippet tweaks
1 parent 56dc3c1 commit ad653c0

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

tutorial/02-create-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Start by creating a navbar for the app.
5757
5858
1. Open `./src/App.tsx` and replace its entire contents with the following.
5959
60-
```TSX
60+
```typescript
6161
import React, { Component } from 'react';
6262
import { BrowserRouter as Router, Route } from 'react-router-dom';
6363
import { Container } from 'reactstrap';
@@ -115,6 +115,6 @@ Start by creating a navbar for the app.
115115
export default App;
116116
```
117117
118-
Save all of your changes and refresh the page. Now, the app should look very different.
118+
1. Save all of your changes and refresh the page. Now, the app should look very different.
119119
120-
![A screenshot of the redesigned home page](images/create-app-01.png)
120+
![A screenshot of the redesigned home page](images/create-app-01.png)

tutorial/04-add-aad-auth.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ In this exercise you will extend the application from the previous exercise to s
1313
1414
1. Open `./src/App.tsx` and add the following `import` statements to the top of the file.
1515

16-
```js
17-
import { config } from './Config';
18-
import { UserAgentApplication } from 'msal';
19-
```
16+
```typescript
17+
import { config } from './Config';
18+
import { UserAgentApplication } from 'msal';
19+
```
2020

2121
## Implement sign-in
2222

@@ -117,13 +117,13 @@ In this section you will get the user's details from Microsoft Graph.
117117

118118
:::code language="typescript" source="../demo/graph-tutorial/src/App.tsx" id="getUserProfileSnippet" highlight="13-22":::
119119

120-
Now if you save your changes and start the app, after sign-in you should end up back on the home page, but the UI should change to indicate that you are signed-in.
120+
1. Save your changes and start the app, after sign-in you should end up back on the home page, but the UI should change to indicate that you are signed-in.
121121

122-
![A screenshot of the home page after signing in](./images/add-aad-auth-01.png)
122+
![A screenshot of the home page after signing in](./images/add-aad-auth-01.png)
123123

124-
Click the user avatar in the top right corner to access the **Sign Out** link. Clicking **Sign Out** resets the session and returns you to the home page.
124+
1. Click the user avatar in the top right corner to access the **Sign Out** link. Clicking **Sign Out** resets the session and returns you to the home page.
125125

126-
![A screenshot of the dropdown menu with the Sign Out link](./images/add-aad-auth-02.png)
126+
![A screenshot of the dropdown menu with the Sign Out link](./images/add-aad-auth-02.png)
127127

128128
## Storing and refreshing tokens
129129

tutorial/05-add-ms-graph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In this exercise you will incorporate the Microsoft Graph into the application.
1616

1717
1. Create a React component to display the results of the call. Create a new file in the `./src` directory named `Calendar.tsx` and add the following code.
1818

19-
```TSX
19+
```typescript
2020
import React from 'react';
2121
import { Table } from 'reactstrap';
2222
import moment from 'moment';
@@ -85,7 +85,7 @@ In this exercise you will incorporate the Microsoft Graph into the application.
8585

8686
1. Add the following component just after the existing `<Route>`.
8787

88-
```TSX
88+
```typescript
8989
<Route exact path="/calendar"
9090
render={(props) =>
9191
<Calendar {...props}

0 commit comments

Comments
 (0)