Skip to content

Commit

Permalink
Menu: remove Backup and Scan links to cloud (#43572)
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z committed Jun 25, 2020
1 parent 8dcb32e commit f0da115
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions client/my-sites/sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,21 @@ export class MySitesSidebar extends Component {
}

cloud() {
const { scanState, rewindState, isCloudEligible, site } = this.props;
const {
scanState,
rewindState,
isCloudEligible,
site,
shouldRenderJetpackSection,
} = this.props;
if (
! site ||
! isCloudEligible ||
! scanState ||
! rewindState ||
'uninitialized' === rewindState.state
'uninitialized' === rewindState.state ||
// Sections are already present in the Jetpack menu
shouldRenderJetpackSection
) {
return null;
}
Expand Down

0 comments on commit f0da115

Please sign in to comment.