Skip to content

Commit

Permalink
feat: migrate to "prop-types" package
Browse files Browse the repository at this point in the history
* Closes #463
  • Loading branch information
tomchentw committed Apr 20, 2017
1 parent 1512786 commit 129b6e2
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 84 deletions.
7 changes: 3 additions & 4 deletions src/lib/Circle.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/DirectionsRenderer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/FusionTablesLayer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from 'lodash';

import {
default as React,
PropTypes,
} from 'react';
import PropTypes from "prop-types";

import { default as React } from 'react';

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/GoogleMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import _ from "lodash";

import invariant from "invariant";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
8 changes: 3 additions & 5 deletions src/lib/InfoWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import _ from "lodash";

import invariant from "invariant";

import {
default as React,
PropTypes,
Children,
} from "react";
import PropTypes from "prop-types";

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

import {
unstable_renderSubtreeIntoContainer,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/KmlLayer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/Marker.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/OverlayView.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/Polygon.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/Polyline.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/Rectangle.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/TrafficLayer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/_Skeleton.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
8 changes: 3 additions & 5 deletions src/lib/addons/InfoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import _ from "lodash";

import invariant from "invariant";

import {
default as React,
PropTypes,
Children,
} from "react";
import PropTypes from "prop-types";

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

import {
unstable_renderSubtreeIntoContainer,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/addons/MarkerClusterer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import MarkerClustererPlus from "marker-clusterer-plus";

Expand Down
8 changes: 3 additions & 5 deletions src/lib/async/withScriptjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import canUseDOM from "can-use-dom";

import getDisplayName from "react-display-name";

import {
default as React,
PropTypes,
Component,
} from "react";
import PropTypes from "prop-types";

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

const LOADING_STATE_NONE = `NONE`;
const LOADING_STATE_BEGIN = `BEGIN`;
Expand Down
7 changes: 3 additions & 4 deletions src/lib/drawing/DrawingManager.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/places/SearchBox.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
7 changes: 3 additions & 4 deletions src/lib/visualization/HeatmapLayer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global google */
import _ from "lodash";

import {
default as React,
PropTypes,
} from "react";
import PropTypes from "prop-types";

import { default as React } from "react";

import {
MAP,
Expand Down
8 changes: 3 additions & 5 deletions src/lib/withGoogleMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import invariant from "invariant";

import getDisplayName from "react-display-name";

import {
default as React,
PropTypes,
Component,
} from "react";
import PropTypes from "prop-types";

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

import {
MAP,
Expand Down

0 comments on commit 129b6e2

Please sign in to comment.