diff --git a/components/date_picker/Calendar.js b/components/date_picker/Calendar.js index 2be22871..115699a4 100644 --- a/components/date_picker/Calendar.js +++ b/components/date_picker/Calendar.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup'; +import TransitionGroup from 'react-transition-group/TransitionGroup'; +import CSSTransition from 'react-transition-group/CSSTransition'; import { range, getAnimationModule } from '../utils/utils'; import time from '../utils/time'; import CalendarMonth from './CalendarMonth'; @@ -135,25 +136,23 @@ const factory = (IconButton) => {
- - - + + + + +
); } diff --git a/components/time_picker/Clock.js b/components/time_picker/Clock.js index e256fc42..9ccf93c8 100644 --- a/components/time_picker/Clock.js +++ b/components/time_picker/Clock.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup'; +import TransitionGroup from 'react-transition-group/TransitionGroup'; +import CSSTransition from 'react-transition-group/CSSTransition'; import { getAnimationModule } from '../utils/utils'; import time from '../utils/time'; import Hours from './ClockHours'; @@ -116,20 +117,18 @@ class Clock extends Component { style={{ height: this.state.radius * 2 }} ref={(node) => { this.placeholderNode = node; }} > - -
- {this.props.display === 'hours' ? this.renderHours() : null} - {this.props.display === 'minutes' ? this.renderMinutes() : null} -
-
+ + +
+ {this.props.display === 'hours' ? this.renderHours() : null} + {this.props.display === 'minutes' ? this.renderMinutes() : null} +
+
+
);