mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 06:11:16 +00:00
fix warnings and rename unsafe lifecycle function (#5814)
This commit is contained in:
@@ -54,7 +54,7 @@ class DirColumnNav extends React.Component {
|
||||
this.isNodeMenuShow = true;
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({opNode: nextProps.currentNode});
|
||||
}
|
||||
|
||||
|
@@ -135,7 +135,7 @@ class DirColumnView extends React.Component {
|
||||
return '';
|
||||
};
|
||||
|
||||
componentWillMount() {
|
||||
UNSAFE_componentWillMount() {
|
||||
let rate = this.getCookie('navRate');
|
||||
if (rate) {
|
||||
this.setState({
|
||||
|
Reference in New Issue
Block a user