Skip to content

Commit 4a1c34e

Browse files
committed
feat(index.js): export withScriptjs
1 parent 9a81765 commit 4a1c34e

File tree

4 files changed

+29
-175
lines changed

4 files changed

+29
-175
lines changed

src/index.css

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/index.js

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
import React from "react";
2-
3-
import ReactDOM from "react-dom";
4-
5-
const Root = (
6-
window.ReactGoogleMapsAsync ?
7-
require(`./app/AsyncApp`).default :
8-
/*
9-
* If you're not using async,
10-
*
11-
* Add script src="https://maps.googleapis.com/maps/api/js" to your HTML to provide google.maps reference
12-
*/
13-
require(`./app/App`).default
14-
);
15-
16-
import "./index.css";
17-
18-
ReactDOM.render(
19-
<Root />,
20-
document.getElementById(`root`)
21-
);
1+
export { default as withScriptjs } from "./withScriptjs"
2+
3+
export { default as withGoogleMap } from "./withGoogleMap"
4+
5+
export { default as GoogleMap } from "./components/GoogleMap"
6+
7+
export { default as Circle } from "./components/Circle"
8+
9+
export { default as Marker } from "./components/Marker"
10+
11+
export { default as Polyline } from "./components/Polyline"
12+
13+
export { default as Polygon } from "./components/Polygon"
14+
15+
export { default as Rectangle } from "./components/Rectangle"
16+
17+
export { default as InfoWindow } from "./components/InfoWindow"
18+
19+
export { default as OverlayView } from "./components/OverlayView"
20+
21+
export { default as DirectionsRenderer } from "./components/DirectionsRenderer"
22+
23+
export { default as FusionTablesLayer } from "./components/FusionTablesLayer"
24+
25+
export { default as KmlLayer } from "./components/KmlLayer"
26+
27+
export { default as TrafficLayer } from "./components/TrafficLayer"
28+
29+
export { default as StreetViewPanorama } from "./components/StreetViewPanorama"

src/lib/index.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/lib/index.spec.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)