From 752cdd3854487ccea0ba92ddfc5b108e882a5526 Mon Sep 17 00:00:00 2001 From: rubenmoya Date: Wed, 21 Feb 2018 20:17:47 +0100 Subject: [PATCH] Revert "Update components to use css-transition-group 2" This reverts commit ab2e78967b9903ce05557dbd7a0dfbb6cb7c56aa. --- components/date_picker/Calendar.js | 11 ++++++----- components/time_picker/Clock.js | 11 ++++++----- package.json | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/components/date_picker/Calendar.js b/components/date_picker/Calendar.js index fef1b07c..2be22871 100644 --- a/components/date_picker/Calendar.js +++ b/components/date_picker/Calendar.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import TransitionGroup from 'react-transition-group/TransitionGroup'; +import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { range, getAnimationModule } from '../utils/utils'; import time from '../utils/time'; import CalendarMonth from './CalendarMonth'; @@ -135,9 +135,10 @@ const factory = (IconButton) => {
- { theme={this.props.theme} viewDate={this.state.viewDate} /> - +
); } diff --git a/components/time_picker/Clock.js b/components/time_picker/Clock.js index 41ebf4bc..e256fc42 100644 --- a/components/time_picker/Clock.js +++ b/components/time_picker/Clock.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import TransitionGroup from 'react-transition-group/TransitionGroup'; +import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { getAnimationModule } from '../utils/utils'; import time from '../utils/time'; import Hours from './ClockHours'; @@ -116,9 +116,10 @@ class Clock extends Component { style={{ height: this.state.radius * 2 }} ref={(node) => { this.placeholderNode = node; }} > -
- +
); diff --git a/package.json b/package.json index 62b66fe6..79811a08 100644 --- a/package.json +++ b/package.json @@ -147,7 +147,7 @@ "prop-types": "^15.6.0", "react": "^15.5.0 || ^16.0.0", "react-dom": "^15.5.0 || ^16.0.0", - "react-transition-group": "^2.2.1" + "react-transition-group": "^2.2.0" }, "pre-commit": "lint:staged" }