mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
fix warnings and rename unsafe lifecycle function (#5814)
This commit is contained in:
@@ -42,7 +42,7 @@ class DirentGridItem extends React.Component {
|
||||
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({isGridSelected: false}, () => {
|
||||
if (nextProps.activeDirent && nextProps.activeDirent.name === nextProps.dirent.name) {
|
||||
this.setState({isGridSelected: true});
|
||||
|
Reference in New Issue
Block a user