From 3d9003e9febe08442ac9c883b09ee93d6989d513 Mon Sep 17 00:00:00 2001 From: bencentra-toast <51962819+bencentra-toast@users.noreply.github.com> Date: Fri, 2 Aug 2019 15:07:29 -0400 Subject: [PATCH] fix: Fix imports to play nicely with rollup (#530) --- src/CSSTransition.js | 2 +- src/ReplaceTransition.js | 4 ++-- src/Transition.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CSSTransition.js b/src/CSSTransition.js index 22abdc65..9b49967c 100644 --- a/src/CSSTransition.js +++ b/src/CSSTransition.js @@ -1,4 +1,4 @@ -import * as PropTypes from 'prop-types'; +import PropTypes from 'prop-types'; import addOneClass from 'dom-helpers/class/addClass'; import removeOneClass from 'dom-helpers/class/removeClass'; diff --git a/src/ReplaceTransition.js b/src/ReplaceTransition.js index c1081c59..1eea0259 100644 --- a/src/ReplaceTransition.js +++ b/src/ReplaceTransition.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { findDOMNode } from 'react-dom' +import ReactDOM from 'react-dom' import TransitionGroup from './TransitionGroup'; /** @@ -28,7 +28,7 @@ class ReplaceTransition extends React.Component { const child = React.Children.toArray(children)[idx]; if (child.props[handler]) child.props[handler](...originalArgs) - if (this.props[handler]) this.props[handler](findDOMNode(this)) + if (this.props[handler]) this.props[handler](ReactDOM.findDOMNode(this)) } render() { diff --git a/src/Transition.js b/src/Transition.js index 765ba9a5..e6e66825 100644 --- a/src/Transition.js +++ b/src/Transition.js @@ -1,4 +1,4 @@ -import * as PropTypes from 'prop-types' +import PropTypes from 'prop-types' import React from 'react' import ReactDOM from 'react-dom'