Portal: Fix Invalid "style" PropType (#1664)

* Fix bad prop.

(cherry picked from commit 7d54ca0a30b6238195a9cfd6da19e8fa94655ae5)

* fix prop-type.

(cherry picked from commit f48a0e2881f6541e4acd4e9f7610bda629b0fcc8)
old
Adam 2017-09-01 11:43:03 -04:00 committed by Javi Velasco
parent 61228b10db
commit 8b7fc07f82
1 changed files with 2 additions and 1 deletions

View File

@ -1,13 +1,14 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import styleShape from 'react-style-proptype';
class Portal extends Component {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
container: PropTypes.node,
style: PropTypes.style,
style: styleShape,
}
static defaultProps = {