diff --git a/projects/plugins/jetpack/_inc/client/components/navigation/index.jsx b/projects/plugins/jetpack/_inc/client/components/navigation/index.jsx index cd95000fc445f..94dee893b155b 100644 --- a/projects/plugins/jetpack/_inc/client/components/navigation/index.jsx +++ b/projects/plugins/jetpack/_inc/client/components/navigation/index.jsx @@ -12,10 +12,8 @@ import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { hasConnectedOwner, isCurrentUserLinked, isOfflineMode } from 'state/connection'; import { - getSiteAdminUrl, getSiteRawUrl, showRecommendations, - showMyJetpack, userCanManageModules as _userCanManageModules, userCanViewStats as _userCanViewStats, getPurchaseToken, @@ -66,10 +64,6 @@ export class Navigation extends React.Component { } ); }; - trackMyJetpackClick = () => { - this.trackNavClick( 'my-jetpack' ); - }; - componentDidMount() { this.trackNewRecommendations(); } @@ -144,14 +138,6 @@ export class Navigation extends React.Component { ) } ) } - { this.props.showMyJetpack && ( - - { _x( 'My Jetpack', 'Navigation item.', 'jetpack' ) } - - ) } ); } else { @@ -192,8 +178,6 @@ export default connect( state => { showRecommendations: showRecommendations( state ), newRecommendationsCount: getNonViewedRecommendationsCount( state ), siteUrl: getSiteRawUrl( state ), - adminUrl: getSiteAdminUrl( state ), purchaseToken: getPurchaseToken( state ), - showMyJetpack: showMyJetpack( state ), }; } )( withRouter( Navigation ) ); diff --git a/projects/plugins/jetpack/_inc/client/components/navigation/test/component.js b/projects/plugins/jetpack/_inc/client/components/navigation/test/component.js index 38867355f05b4..900e9856ae6f3 100644 --- a/projects/plugins/jetpack/_inc/client/components/navigation/test/component.js +++ b/projects/plugins/jetpack/_inc/client/components/navigation/test/component.js @@ -125,11 +125,5 @@ describe( 'Navigation', () => { expect( screen.getByRole( 'menuitem', { name: 'Recommendations 1' } ) ).toBeInTheDocument(); expect( screen.getByRole( 'option', { name: 'Recommendations 1' } ) ).toBeInTheDocument(); } ); - - it( 'renders My Jetpack tab', () => { - render( ); - expect( screen.getByRole( 'menuitem', { name: 'My Jetpack' } ) ).toBeInTheDocument(); - expect( screen.getByRole( 'option', { name: 'My Jetpack' } ) ).toBeInTheDocument(); - } ); } ); } ); diff --git a/projects/plugins/jetpack/changelog/rm-my-jetpack-react-dashboard b/projects/plugins/jetpack/changelog/rm-my-jetpack-react-dashboard new file mode 100644 index 0000000000000..9793805e3e33f --- /dev/null +++ b/projects/plugins/jetpack/changelog/rm-my-jetpack-react-dashboard @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Dashboard: remove link to "My Jetpack"