@@ -3,7 +3,7 @@ import _ from 'lodash'
33import PropTypes from 'prop-types'
44import * as React from 'react'
55
6- import { makeDebugger , normalizeTransitionDuration , SUI , useKeyOnly } from '../../lib'
6+ import { makeDebugger , normalizeTransitionDuration , SUI , getKeyOnly } from '../../lib'
77import TransitionGroup from './TransitionGroup'
88import {
99 computeStatuses ,
@@ -125,16 +125,16 @@ export default class Transition extends React.Component {
125125 return cx (
126126 animation ,
127127 childClasses ,
128- useKeyOnly ( animating , 'animating' ) ,
129- useKeyOnly ( status === TRANSITION_STATUS_ENTERING , 'in' ) ,
130- useKeyOnly ( status === TRANSITION_STATUS_EXITING , 'out' ) ,
131- useKeyOnly ( status === TRANSITION_STATUS_EXITED , 'hidden' ) ,
132- useKeyOnly ( status !== TRANSITION_STATUS_EXITED , 'visible' ) ,
128+ getKeyOnly ( animating , 'animating' ) ,
129+ getKeyOnly ( status === TRANSITION_STATUS_ENTERING , 'in' ) ,
130+ getKeyOnly ( status === TRANSITION_STATUS_EXITING , 'out' ) ,
131+ getKeyOnly ( status === TRANSITION_STATUS_EXITED , 'hidden' ) ,
132+ getKeyOnly ( status !== TRANSITION_STATUS_EXITED , 'visible' ) ,
133133 'transition' ,
134134 )
135135 }
136136
137- return cx ( animation , childClasses , useKeyOnly ( animating , 'animating transition' ) )
137+ return cx ( animation , childClasses , getKeyOnly ( animating , 'animating transition' ) )
138138 }
139139
140140 computeStyle = ( ) => {
0 commit comments