Use named exports in example

This commit is contained in:
Michael 2020-09-25 22:02:06 +02:00
parent 8b1fb8c397
commit df07d75bec
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import styled from 'styled-components';
import GoogleMapReact from 'google-map-react'
// import 'google-map-react/dist/index.css'
import LOS_ANGELES_CENTER from './const/la_center';
import { LOS_ANGELES } from './const/cities';
import Marker from './components/Marker';
@ -34,7 +34,7 @@ const App = () => {
<Wrapper>
<GoogleMapReact
defaultZoom={10}
defaultCenter={LOS_ANGELES_CENTER}
defaultCenter={LOS_ANGELES}
>
{places.map((place) => (
<Marker

View File

@ -0,0 +1 @@
export const LOS_ANGELES = [34.0522, -118.2437]

View File

@ -1 +0,0 @@
export default [34.0522, -118.2437];