Skip to content

Commit 665bf67

Browse files
authored
Update GeolocationTutorial.md (SharePoint#8188)
In @microsoft/[email protected] - this interface has changed to IGetLocationActionArguments.
1 parent 58a581c commit 665bf67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/spfx/viva/get-started/actions/geolocation/GeolocationTutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,16 @@ longitude: "Longitude: " + this.state.longitude
251251

252252
So far we have created defined our geolocation actions and wired in our states. Now we can finally implement the `onAction` function, which gives the ability to the Third Party Developer to decide what they wish to do with the ___location coordinates that the user has shared with them.
253253

254-
For this, open the QuickView.ts file (**./src/adaptiveCardExtensions/geoLocation/quickView/QuickView.ts**) and import the `IActionArguments` interface, as follows:
254+
For this, open the QuickView.ts file (**./src/adaptiveCardExtensions/geoLocation/quickView/QuickView.ts**) and import the `IGetLocationActionArguments` interface, as follows:
255255

256256
```typescript
257-
import IActionArguments from @microsoft/sp-adaptive-card-extension-base
257+
import {IGetLocationActionArguments} from '@microsoft/sp-adaptive-card-extension-base';
258258
```
259259

260260
Finally, introduce the following `onAction` function in the QuickView class:
261261

262262
```typescript
263-
public onAction(action: IActionArguments): void {
263+
public onAction(action: IGetLocationActionArguments): void {
264264
if (action.type === 'VivaAction.GetLocation') {
265265
this.setState({
266266
latitude: action.___location.latitude.toString(),

0 commit comments

Comments
 (0)