Skip to content

Commit

Permalink
fix: Fix imports to play nicely with rollup (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
bencentra-toast authored and taion committed Aug 2, 2019
1 parent cfebc9f commit 3d9003e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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';
Expand Down
4 changes: 2 additions & 2 deletions 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';

/**
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion 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'

Expand Down

0 comments on commit 3d9003e

Please sign in to comment.