@@ -2,11 +2,11 @@ import classNames from 'classnames'
22import PropTypes from 'prop-types'
33import { Component } from 'react'
44
5+ import Swipe from 'components/transitions/Swipe'
56import {
67 alterationResponsePropType ,
78 Status ,
89} from 'reducers/alterationsResponse'
9- import { CSSTransitionLazy } from 'thirdpartyExtensions/ReactTransitionGroup'
1010
1111/**
1212 * ManageButton class for a button connected to a player manage command
@@ -121,8 +121,7 @@ export default class ManageButton extends Component {
121121 }
122122
123123 render ( ) {
124- const { onClick, disabled, className, timeout, iconDisabled, error } =
125- this . props
124+ const { onClick, disabled, className, iconDisabled, error } = this . props
126125
127126 const onClickControlled = ( e ) => {
128127 // do not manage any other click during the transition
@@ -150,15 +149,11 @@ export default class ManageButton extends Component {
150149 onClick = { onClickControlled }
151150 disabled = { disabled }
152151 >
153- < CSSTransitionLazy
154- in = { this . state . display }
155- classNames = "managed"
156- timeout = { timeout }
157- >
158- < div className = "managed icon" >
152+ < Swipe in = { this . state . display } >
153+ < div className = "managed icon transition" >
159154 < i className = { `las la-${ icon } ` } > </ i >
160155 </ div >
161- </ CSSTransitionLazy >
156+ </ Swipe >
162157 </ button >
163158 )
164159 }
0 commit comments