Skip to content

Commit

Permalink
feat: migrate to "create-react-class" package
Browse files Browse the repository at this point in the history
* Closes #463
  • Loading branch information
tomchentw committed Apr 20, 2017
1 parent 129b6e2 commit d54cc95
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 18 deletions.
4 changes: 3 additions & 1 deletion src/lib/Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -102,7 +104,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `Circle`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/DirectionsRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -66,7 +68,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `DirectionsRenderer`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/FusionTablesLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from 'lodash';

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from 'react';

import {
Expand Down Expand Up @@ -55,7 +57,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `FusionTablesLayer`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/GoogleMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import invariant from "invariant";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -151,7 +153,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `GoogleMap`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/InfoWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import invariant from "invariant";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React, Children } from "react";

import {
Expand Down Expand Up @@ -96,7 +98,7 @@ function openInfoWindow(context, infoWindow) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `InfoWindow`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/KmlLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -80,7 +82,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `KmlLayer`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -182,7 +184,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `Marker`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/OverlayView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -60,7 +62,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `OverlayView`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/Polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -94,7 +96,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `Polygon`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/Polyline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -90,7 +92,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `Polyline`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -92,7 +94,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `Rectangle`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/TrafficLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -54,7 +56,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `TrafficLayer`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/_Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -52,7 +54,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `Skeleton`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/addons/InfoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import invariant from "invariant";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React, Children } from "react";

import {
Expand Down Expand Up @@ -91,7 +93,7 @@ function openInfoBox(context, infoBox) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `InfoBox`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/addons/MarkerClusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import MarkerClustererPlus from "marker-clusterer-plus";
Expand Down Expand Up @@ -166,7 +168,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `MarkerClusterer`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/drawing/DrawingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -68,7 +70,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `DrawingManager`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/places/SearchBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -63,7 +65,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `SearchBox`,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/visualization/HeatmapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import _ from "lodash";

import PropTypes from "prop-types";

import createReactClass from "create-react-class";

import { default as React } from "react";

import {
Expand Down Expand Up @@ -57,7 +59,7 @@ function getInstanceFromComponent(component) {
}

export default _.flowRight(
React.createClass,
createReactClass,
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
)({
displayName: `HeatmapLayer`,
Expand Down

0 comments on commit d54cc95

Please sign in to comment.