Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
remove dup componentDidMount
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jan 6, 2022
1 parent 6a0f73a commit 8fa7055
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ class Navigation extends Component {
};
}

/**
* Component will mount
* @method componentWillMount
* @returns {undefined}getBasePath
*/
componentDidMount() {
// this.props.getNavigation(getBaseUrl(this.props.pathname), 2);
this.closeMobileMenu();
}

/**
* Component will receive props
* @method componentWillReceiveProps
Expand Down Expand Up @@ -120,6 +110,7 @@ class Navigation extends Component {

componentDidMount() {
document.addEventListener('mousedown', this.handleClickOutside, false);
this.closeMobileMenu();
}

componentWillUnmount() {
Expand Down

0 comments on commit 8fa7055

Please sign in to comment.