Skip to content

Commit 3d9003e

Browse files
bencentra-toasttaion
authored andcommitted
fix: Fix imports to play nicely with rollup (#530)
1 parent cfebc9f commit 3d9003e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/CSSTransition.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import*asPropTypesfrom'prop-types';
1+
importPropTypesfrom'prop-types';
22
importaddOneClassfrom'dom-helpers/class/addClass';
33

44
importremoveOneClassfrom'dom-helpers/class/removeClass';

‎src/ReplaceTransition.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
importPropTypesfrom'prop-types';
22
importReactfrom'react';
3-
import{findDOMNode}from'react-dom'
3+
importReactDOMfrom'react-dom'
44
importTransitionGroupfrom'./TransitionGroup';
55

66
/**
@@ -28,7 +28,7 @@ class ReplaceTransition extends React.Component {
2828
constchild=React.Children.toArray(children)[idx];
2929

3030
if(child.props[handler])child.props[handler](...originalArgs)
31-
if(this.props[handler])this.props[handler](findDOMNode(this))
31+
if(this.props[handler])this.props[handler](ReactDOM.findDOMNode(this))
3232
}
3333

3434
render(){

‎src/Transition.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import*asPropTypesfrom'prop-types'
1+
importPropTypesfrom'prop-types'
22
importReactfrom'react'
33
importReactDOMfrom'react-dom'
44

0 commit comments

Comments
 (0)