Skip to content

Commit

Permalink
chore: replace deprecated useKeyOnly with getKeyOnly in modules/Trans…
Browse files Browse the repository at this point in the history
…ition
  • Loading branch information
dominikdosoudil committed Nov 18, 2024
1 parent 1ba8dd0 commit 7a49029
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/Transition/Transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import _ from 'lodash'
import PropTypes from 'prop-types'
import * as React from 'react'

import { makeDebugger, normalizeTransitionDuration, SUI, useKeyOnly } from '../../lib'
import { makeDebugger, normalizeTransitionDuration, SUI, getKeyOnly } from '../../lib'
import TransitionGroup from './TransitionGroup'
import {
computeStatuses,
Expand Down Expand Up @@ -125,16 +125,16 @@ export default class Transition extends React.Component {
return cx(
animation,
childClasses,
useKeyOnly(animating, 'animating'),
useKeyOnly(status === TRANSITION_STATUS_ENTERING, 'in'),
useKeyOnly(status === TRANSITION_STATUS_EXITING, 'out'),
useKeyOnly(status === TRANSITION_STATUS_EXITED, 'hidden'),
useKeyOnly(status !== TRANSITION_STATUS_EXITED, 'visible'),
getKeyOnly(animating, 'animating'),
getKeyOnly(status === TRANSITION_STATUS_ENTERING, 'in'),
getKeyOnly(status === TRANSITION_STATUS_EXITING, 'out'),
getKeyOnly(status === TRANSITION_STATUS_EXITED, 'hidden'),
getKeyOnly(status !== TRANSITION_STATUS_EXITED, 'visible'),
'transition',
)
}

return cx(animation, childClasses, useKeyOnly(animating, 'animating transition'))
return cx(animation, childClasses, getKeyOnly(animating, 'animating transition'))
}

computeStyle = () => {
Expand Down

0 comments on commit 7a49029

Please sign in to comment.