Skip to content

Commit da8491d

Browse files
committed
Replace JSX with React.JSX
1 parent fe63636 commit da8491d

20 files changed

+24
-25
lines changed

packages/react-google-maps-api-gatsby-example/src/examples/example-directions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Props {
3131
}
3232
}
3333

34-
function ExampleDirections({ styles }: Props): JSX.Element {
34+
function ExampleDirections({ styles }: Props): React.JSX.Element {
3535
const [response, setResponse] = useState<google.maps.DirectionsResult | null>(
3636
null
3737
)

packages/react-google-maps-api-gatsby-example/src/examples/example-drawing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface Props {
2020
}
2121
}
2222

23-
function ExampleDrawing({ styles }: Props): JSX.Element {
23+
function ExampleDrawing({ styles }: Props): React.JSX.Element {
2424
return (
2525
<div className='map'>
2626
<div className='map-container'>

packages/react-google-maps-api-gatsby-example/src/examples/example-ground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Props {
3131
}
3232
}
3333

34-
function GroundOverlayC(): JSX.Element {
34+
function GroundOverlayC(): React.JSX.Element {
3535
return (
3636
<GroundOverlay
3737
url='https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg'
@@ -42,7 +42,7 @@ function GroundOverlayC(): JSX.Element {
4242

4343
const GroundOverlayComponent = memo(GroundOverlayC)
4444

45-
function ExampleGround({ styles }: Props): JSX.Element{
45+
function ExampleGround({ styles }: Props): React.JSX.Element{
4646
return (
4747
<div className='map'>
4848
<div className='map-container'>

packages/react-google-maps-api-gatsby-example/src/examples/example-heatmap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface Props {
2727
}
2828
}
2929

30-
function ExampleHeatmap({ styles }: Props): JSX.Element{
30+
function ExampleHeatmap({ styles }: Props): React.JSX.Element{
3131
const data = useMemo(() => {
3232
return [
3333
new google.maps.LatLng(37.782, -122.447),

packages/react-google-maps-api-gatsby-example/src/examples/example-options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Props {
3131
}
3232
}
3333

34-
function ExampleOptions({ styles }: Props): JSX.Element {
34+
function ExampleOptions({ styles }: Props): React.JSX.Element {
3535
return (
3636
<div className='map'>
3737
<div className='map-container'>

packages/react-google-maps-api-gatsby-example/src/examples/example-overlay-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface Props {
3333
}
3434
}
3535

36-
function ExampleOverlayView({ styles }: Props): JSX.Element {
36+
function ExampleOverlayView({ styles }: Props): React.JSX.Element {
3737
const [isShown, setIsShown] = useState(false)
3838

3939
const changeIsShown = useCallback(() => {

packages/react-google-maps-api-gatsby-example/src/examples/example-search-box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface Props {
4040
}
4141
}
4242

43-
function ExampleSearchBox({ styles }: Props): JSX.Element{
43+
function ExampleSearchBox({ styles }: Props): React.JSX.Element{
4444
return (
4545
<div className='map'>
4646
<div className='map-container'>

packages/react-google-maps-api-gatsby-example/src/examples/example-shapes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ interface Props {
143143
}
144144
}
145145

146-
function ExampleShapes({ styles }: Props): JSX.Element {
146+
function ExampleShapes({ styles }: Props): React.JSX.Element {
147147
const [polylineVisible, setPolylineVisible] = useState(true)
148148
const [polylineOptions, setPolylineOptions] = useState(
149149
JSON.stringify(POLYLINE_OPTIONS)

packages/react-google-maps-api-gatsby-example/src/examples/example-traffic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface Props {
2424
}
2525
}
2626

27-
function ExampleTraffic({ styles }: Props): JSX.Element {
27+
function ExampleTraffic({ styles }: Props): React.JSX.Element {
2828
return (
2929
<div className='map'>
3030
<div className='map-container'>

packages/react-google-maps-api-gatsby-example/src/examples/example-transit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface Props {
3333
}
3434
}
3535

36-
function ExampleTransit({ styles }: Props): JSX.Element {
36+
function ExampleTransit({ styles }: Props): React.JSX.Element {
3737
return (
3838
<div className='map'>
3939
<div className='map-container'>

0 commit comments

Comments
 (0)