Skip to content

Commit df07d75

Browse files
Use named exports in example
1 parent 8b1fb8c commit df07d75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styled from 'styled-components';
44
import GoogleMapReact from 'google-map-react'
55
// import 'google-map-react/dist/index.css'
66

7-
import LOS_ANGELES_CENTER from './const/la_center';
7+
import { LOS_ANGELES } from './const/cities';
88

99
import Marker from './components/Marker';
1010

@@ -34,7 +34,7 @@ const App = () => {
3434
<Wrapper>
3535
<GoogleMapReact
3636
defaultZoom={10}
37-
defaultCenter={LOS_ANGELES_CENTER}
37+
defaultCenter={LOS_ANGELES}
3838
>
3939
{places.map((place) => (
4040
<Marker

example/src/const/cities.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const LOS_ANGELES = [34.0522, -118.2437]

example/src/const/la_center.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)