Skip to content

Commit 799238e

Browse files
author
Vamshi Maddur
committed
Rename @react-google-map component to have proper differentiation
1 parent feaf570 commit 799238e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Map.jsx renamed to src/components/ReactGoogleMap.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const center = {
2828
lng: -81.530425,
2929
};
3030

31-
export default function Map() {
31+
export default function ReactGoogleMap() {
3232
const { isLoaded, loadError } = useLoadScript({
3333
googleMapsApiKey: process.env.REACT_APP_GOOGLE_MAPS_API_KEY,
3434
libraries,

src/pages/Landing/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import TabPanel from "@material-ui/lab/TabPanel";
3-
import Map from "components/Map";
3+
import ReactGoogleMap from "components/ReactGoogleMap";
44
import MapBox from "components/MapBox";
55
import GoogleMap from "components/GoogleMap";
66

@@ -14,7 +14,7 @@ export default function Landing({ currentTheme }) {
1414
<MapBox currentTheme={currentTheme} />
1515
</TabPanel>
1616
<TabPanel value={2}>
17-
<Map />
17+
<ReactGoogleMap />
1818
</TabPanel>
1919
</div>
2020
);

0 commit comments

Comments
 (0)