Skip to content

Commit a3d3ba4

Browse files
authored
Merge pull request #120 from ubilabs/chore/format-all-task
Chore/format all task
2 parents cde868f + 0cbc48c commit a3d3ba4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/docs/useStreetViewPanorama.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
React hook to use the [Street View Panorama](https://developers.google.com/maps/documentation/javascript/streetview) in any component.
44

55
## Usage
6+
67
The `StreetViewPanorama` can either be used within a DOM element, like a `<div>` element:
78

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

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

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

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

6666
## Return value
6767

0 commit comments

Comments
 (0)