Skip to content

Commit d80cfe5

Browse files
committed
feat(StreetViewPanorama): fix deprecation warnings
1 parent 4127f7e commit d80cfe5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/lib/StreetViewPanorama.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* global google */
22
import _ from 'lodash';
33

4-
import {
5-
default as React,
6-
PropTypes,
7-
} from "react";
4+
import PropTypes from "prop-types";
5+
6+
import createReactClass from "create-react-class";
7+
8+
import React from "react";
89

910
import {
1011
MAP,
@@ -109,7 +110,7 @@ function getInstanceFromComponent(component) {
109110
}
110111

111112
export default _.flowRight(
112-
React.createClass,
113+
createReactClass,
113114
enhanceElement(getInstanceFromComponent, publicMethodMap, eventMap, controlledPropUpdaterMap),
114115
)({
115116
displayName: `StreetViewPanorama`,

0 commit comments

Comments
 (0)