mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 10:41:15 +08:00
Simplify transition code
This commit is contained in:
@@ -112,10 +112,6 @@ class Comment extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentWillAppear(callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
componentWillEnter(callback) {
|
||||
callback();
|
||||
const userId = this.props.currentUser ? this.props.currentUser.id : null;
|
||||
@@ -132,10 +128,6 @@ class Comment extends React.Component {
|
||||
this.setState({animateEnter: true});
|
||||
}
|
||||
|
||||
componentWillLeave(callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
static propTypes = {
|
||||
reactKey: PropTypes.string.isRequired,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user