From dbff7ae16f240f80b8b8131d35929b4a2135d0aa Mon Sep 17 00:00:00 2001
From: Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com>
Date: Mon, 28 Jun 2021 10:28:52 -0700
Subject: env updates

---
 src/client/views/collections/CollectionMapView.tsx | 25 ++++++++++------------
 1 file changed, 11 insertions(+), 14 deletions(-)

(limited to 'src/client/views/collections/CollectionMapView.tsx')

diff --git a/src/client/views/collections/CollectionMapView.tsx b/src/client/views/collections/CollectionMapView.tsx
index 2203176de..67864f92f 100644
--- a/src/client/views/collections/CollectionMapView.tsx
+++ b/src/client/views/collections/CollectionMapView.tsx
@@ -87,19 +87,15 @@ export default class CollectionMapView extends CollectionSubView<MapSchema, Goog
 
 
         return <div className="collectionMapView" ref={this.createDashEventsTarget}>
+            <LoadScript
+                googleMapsApiKey={process.env.GOOGLE_MAPS!}
+                libraries={['places']}
+            >
+                <div className={"collectionMapView-contents"}
+                    style={{ pointerEvents: active() ? undefined : "none", overflow: 'hidden' }}
+                    onWheel={e => e.stopPropagation()}
+                    onPointerDown={e => (e.button === 0 && !e.ctrlKey) && e.stopPropagation()} >
 
-            <div className={"collectionMapView-contents"}
-                style={{ pointerEvents: active() ? undefined : "none", overflow: 'hidden' }}
-                onWheel={e => e.stopPropagation()}
-                onPointerDown={e => (e.button === 0 && !e.ctrlKey) && e.stopPropagation()} >
-                <h1 className="dash-label">
-                    Dash!
-                </h1>
-                <LoadScript
-                    // googleMapsApiKey='AIzaSyALJU8DfCAqEAS0OqMDCmkE0otlz4H81fg'
-                    googleMapsApiKey={process.env.REACT_APP_DASH_GOOGLE_MAPS_API_KEY!}
-                    libraries={['places']}
-                >
                     <GoogleMap
                         mapContainerStyle={mapContainerStyle}
                         zoom={5}
@@ -113,8 +109,9 @@ export default class CollectionMapView extends CollectionSubView<MapSchema, Goog
                             position={{ lat: 47.617701, lng: -122.359485 }} />
 
                     </GoogleMap>
-                </LoadScript >
-            </div>
+
+                </div>
+            </LoadScript >
         </div >;
     }
 
-- 
cgit v1.2.3-70-g09d2

