Skip to content

Commit 7a49029

Browse files
chore: replace deprecated useKeyOnly with getKeyOnly in modules/Transition
1 parent 1ba8dd0 commit 7a49029

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/modules/Transition/Transition.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import _ from 'lodash'
33
import PropTypes from 'prop-types'
44
import * as React from 'react'
55

6-
import { makeDebugger, normalizeTransitionDuration, SUI, useKeyOnly } from '../../lib'
6+
import { makeDebugger, normalizeTransitionDuration, SUI, getKeyOnly } from '../../lib'
77
import TransitionGroup from './TransitionGroup'
88
import {
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

Comments
 (0)