From 8b7fc07f82ca25e7df3bbebd7b9108a19aadfce2 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 1 Sep 2017 11:43:03 -0400 Subject: [PATCH] Portal: Fix Invalid "style" PropType (#1664) * Fix bad prop. (cherry picked from commit 7d54ca0a30b6238195a9cfd6da19e8fa94655ae5) * fix prop-type. (cherry picked from commit f48a0e2881f6541e4acd4e9f7610bda629b0fcc8) --- components/hoc/Portal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/hoc/Portal.js b/components/hoc/Portal.js index f1ca7273..1a9a5357 100644 --- a/components/hoc/Portal.js +++ b/components/hoc/Portal.js @@ -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 = {