Skip to content

Commit

Permalink
Jetpack Cloud: Avoid displaying the Global Sidebar (#89011)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 authored and pull[bot] committed Apr 3, 2024
1 parent 4ca2101 commit 8413753
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/my-sites/navigation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ class MySitesNavigation extends Component {
showManageSitesButton: false,
showHiddenSites: false,
};
} else if ( this.props.isGlobalSidebarVisible ) {
return this.renderGlobalSidebar();
} else if ( this.props.isGlobalSiteSidebarVisible ) {
return this.renderGlobalSiteSidebar();
} else {
asyncSidebar = <AsyncLoad require="calypso/my-sites/sidebar" { ...asyncProps } />;

Expand Down Expand Up @@ -107,12 +111,6 @@ class MySitesNavigation extends Component {
}

render() {
if ( this.props.isGlobalSidebarVisible ) {
return this.renderGlobalSidebar();
}
if ( this.props.isGlobalSiteSidebarVisible ) {
return this.renderGlobalSiteSidebar();
}
return this.renderSidebar();
}
}
Expand Down

0 comments on commit 8413753

Please sign in to comment.