diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx index 812d536a8e5d..75b497f5429f 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx @@ -71,7 +71,6 @@ export class DashConnections extends Component { ) }
- { __( 'Your site is connected to WordPress.com.', 'jetpack' ) } { this.props.isConnectionOwner && ( { __( 'You are the Jetpack owner.', 'jetpack' ) } @@ -100,7 +99,7 @@ export class DashConnections extends Component { */ userConnection() { const maybeShowLinkUnlinkBtn = this.props.isConnectionOwner ? null : ( - + ); let cardContent = ''; @@ -131,14 +130,7 @@ export class DashConnections extends Component { } if ( ! this.props.isLinked ) { - cardContent = ( -
-
- { __( 'Get the most out of Jetpack.', 'jetpack' ) } -
-
{ maybeShowLinkUnlinkBtn }
-
- ); + cardContent =
{ maybeShowLinkUnlinkBtn }
; } else if ( this.props.isFetchingUserData ) { cardContent = __( 'Loading…', 'jetpack' ); } else if ( ! this.props.wpComConnectedUser?.email ) { diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx index 077da4c240e1..fbb2b5a1e08f 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx @@ -3,9 +3,10 @@ import { createInterpolateElement } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import Button from 'components/button'; import DashItem from 'components/dash-item'; +import JetpackBanner from 'components/jetpack-banner'; import analytics from 'lib/analytics'; import PropTypes from 'prop-types'; -import React, { Component } from 'react'; +import { Component } from 'react'; import { connect } from 'react-redux'; import { isOfflineMode, hasConnectedOwner, connectUser } from 'state/connection'; import { isModuleAvailable } from 'state/modules'; @@ -78,26 +79,29 @@ class DashMonitor extends Component { support={ support } className="jp-dash-item__is-inactive" noToggle={ ! this.props.hasConnectedOwner } + overrideContent={ + ( ! this.props.hasConnectedOwner && ! this.props.isOfflineMode && ( + + ) ) || + null + } >

{ this.props.isOfflineMode ? __( 'Unavailable in Offline Mode.', 'jetpack' ) : activateMessage }

- - { ! this.props.isOfflineMode && ! this.props.hasConnectedOwner && ( -

- { createInterpolateElement( - __( - ' account to use this feature.', - 'jetpack' - ), - { - Button: