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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/CSSTransition.js

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

44
import removeOneClass from '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
import PropTypes from 'prop-types';
22
import React from 'react';
3-
import { findDOMNode } from 'react-dom'
3+
import ReactDOM from 'react-dom'
44
import TransitionGroup from './TransitionGroup';
55

66
/**
@@ -28,7 +28,7 @@ class ReplaceTransition extends React.Component {
2828
const child = 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 * as PropTypes from 'prop-types'
1+
import PropTypes from 'prop-types'
22
import React from 'react'
33
import ReactDOM from 'react-dom'
44

0 commit comments

Comments
 (0)