Skip to content

Commit

Permalink
Merge pull request #120 from ubilabs/chore/format-all-task
Browse files Browse the repository at this point in the history
Chore/format all task
  • Loading branch information
BiniCodes authored Nov 14, 2022
2 parents cde868f + 0cbc48c commit a3d3ba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/docs/useStreetViewPanorama.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
React hook to use the [Street View Panorama](https://developers.google.com/maps/documentation/javascript/streetview) in any component.

## Usage

The `StreetViewPanorama` can either be used within a DOM element, like a `<div>` element:

```tsx
Expand Down Expand Up @@ -39,7 +40,6 @@ const [divContainer, setDivContainer] = useState<HTMLDivElement | null>(null);

or be created on its own to be used by the map:


```tsx
import React, {useEffect} from 'react';
import {
Expand All @@ -59,9 +59,9 @@ const MyComponent = () => {
return null;
};
```
**NOTE**:
The map instance is only created and can be used with the `useStreetViewPanorama` hook when the `mapContainer` is passed to the `GoogleMapsProvider`.

**NOTE**:
The map instance is only created and can be used with the `useStreetViewPanorama` hook when the `mapContainer` is passed to the `GoogleMapsProvider`.

## Return value

Expand Down

0 comments on commit a3d3ba4

Please sign in to comment.