@@ -3,7 +3,7 @@ import _ from 'lodash'
3
3
import PropTypes from 'prop-types'
4
4
import * as React from 'react'
5
5
6
- import { makeDebugger , normalizeTransitionDuration , SUI , useKeyOnly } from '../../lib'
6
+ import { makeDebugger , normalizeTransitionDuration , SUI , getKeyOnly } from '../../lib'
7
7
import TransitionGroup from './TransitionGroup'
8
8
import {
9
9
computeStatuses ,
@@ -125,16 +125,16 @@ export default class Transition extends React.Component {
125
125
return cx (
126
126
animation ,
127
127
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' ) ,
133
133
'transition' ,
134
134
)
135
135
}
136
136
137
- return cx ( animation , childClasses , useKeyOnly ( animating , 'animating transition' ) )
137
+ return cx ( animation , childClasses , getKeyOnly ( animating , 'animating transition' ) )
138
138
}
139
139
140
140
computeStyle = ( ) => {
0 commit comments