From d1907609fc25b96ad000989fb35d650307c60b5e Mon Sep 17 00:00:00 2001 From: Michael Baldwin Date: Mon, 1 May 2017 14:31:28 -0400 Subject: [PATCH] updated react-addons-css-transition-group to react-transition-group --- package.json | 2 +- src/components/addbutton.js | 6 +++--- webpack.config.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 8270ec08..de96e2de 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "draft-js": "^0.10.0", "immutable": "^3.7.6", "prop-types": "^15.5.8", - "react-addons-css-transition-group": "^15.0.0" + "react-transition-group": "^1.1.2" }, "peerDependencies": { "react": "^15.0.0", diff --git a/src/components/addbutton.js b/src/components/addbutton.js index 9dfbf86d..8923bf56 100644 --- a/src/components/addbutton.js +++ b/src/components/addbutton.js @@ -2,7 +2,7 @@ import PropTypes from 'prop-types'; // import './addbutton.scss'; import React from 'react'; -import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; +import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { getSelectedBlockNode } from '../util'; @@ -151,7 +151,7 @@ export default class AddButton extends React.Component { {this.state.isOpen ? ( - ); })} - + ) : null} ); diff --git a/webpack.config.js b/webpack.config.js index 3d007b4e..151510a3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -188,11 +188,11 @@ if (isProd) { } }, { - 'react-addons-css-transition-group': { - root: ['React','addons','CSSTransitionGroup'], - commonjs2: 'react-addons-css-transition-group', - commonjs: 'react-addons-css-transition-group', - amd: 'react-addons-css-transition-group', + 'react-transition-group': { + root: ['React','CSSTransitionGroup'], + commonjs2: 'react-transition-group', + commonjs: 'react-transition-group', + amd: 'react-transition-group', } }, {