1
1
import { getRedirectUrl } from '@automattic/jetpack-components' ;
2
+ import { ExternalLink } from '@wordpress/components' ;
3
+ import { createInterpolateElement } from '@wordpress/element' ;
2
4
import { __ , _x } from '@wordpress/i18n' ;
3
- import Card from 'components/card' ;
4
5
import ConnectUserBar from 'components/connect-user-bar' ;
5
6
import { withModuleSettingsFormHelpers } from 'components/module-settings/with-module-settings-form-helpers' ;
6
7
import { ModuleToggle } from 'components/module-toggle' ;
@@ -12,7 +13,7 @@ import React, { Component } from 'react';
12
13
export const Monitor = withModuleSettingsFormHelpers (
13
14
class extends Component {
14
15
trackConfigureClick = ( ) => {
15
- analytics . tracks . recordJetpackClick ( 'configure-monitor' ) ;
16
+ analytics . tracks . recordJetpackClick ( 'configure-monitor-email ' ) ;
16
17
} ;
17
18
18
19
render ( ) {
@@ -48,26 +49,23 @@ export const Monitor = withModuleSettingsFormHelpers(
48
49
toggleModule = { this . props . toggleModuleNow }
49
50
>
50
51
< span className = "jp-form-toggle-explanation" >
51
- { __ (
52
- 'Get alerts if your site goes offline. We’ll let you know when it’s back up, too.' ,
53
- 'jetpack'
52
+ { createInterpolateElement (
53
+ __ (
54
+ 'Get alerts if your site goes offline. Alerts are sent to your <a>WordPress.com account</a> email address.' ,
55
+ 'jetpack'
56
+ ) ,
57
+ {
58
+ a : (
59
+ < ExternalLink
60
+ href = "https://wordpress.com/me/account"
61
+ onClick = { this . trackConfigureClick }
62
+ />
63
+ ) ,
64
+ }
54
65
) }
55
66
</ span >
56
67
</ ModuleToggle >
57
68
</ SettingsGroup >
58
- { hasConnectedOwner && (
59
- < Card
60
- compact
61
- className = "jp-settings-card__configure-link"
62
- onClick = { this . trackConfigureClick }
63
- href = { getRedirectUrl ( 'calypso-settings-security' , {
64
- site : this . props . blogID ?? this . props . siteRawUrl ,
65
- } ) }
66
- target = "_blank"
67
- >
68
- { __ ( 'Configure your notification settings' , 'jetpack' ) }
69
- </ Card >
70
- ) }
71
69
72
70
{ ! hasConnectedOwner && ! isOfflineMode && (
73
71
< ConnectUserBar
0 commit comments