1
1
import React from 'react'
2
- import { EuiLink , EuiText } from '@elastic/eui'
2
+ import { EuiText } from '@elastic/eui'
3
+ import cx from 'classnames'
3
4
import { APPLICATION_NAME } from 'uiSrc/constants'
4
5
5
6
import { getUtmExternalLink } from 'uiSrc/utils/links'
7
+ import { ExternalLink } from 'uiSrc/components'
6
8
import styles from '../styles.module.scss'
7
9
8
10
const MessageCloudApiKeys = ( ) => (
9
11
< EuiText color = "subdued" size = "s" className = { styles . message } data-testid = "summary" >
10
12
{ 'Enter Redis Cloud API keys to discover and add databases. API keys can be enabled by following the steps mentioned in the ' }
11
- < EuiLink
12
- color = "text"
13
- className = { styles . link }
14
- external = { false }
15
- target = "_blank"
13
+
14
+ < ExternalLink
15
+ className = { cx ( styles . link , styles . external ) }
16
16
href = "https://docs.redis.com/latest/rc/api/get-started/enable-the-api/"
17
17
>
18
18
documentation.
19
- </ EuiLink >
19
+ </ ExternalLink >
20
20
</ EuiText >
21
21
)
22
22
@@ -26,15 +26,12 @@ const MessageStandalone = () => (
26
26
{ ' ' }
27
27
{ APPLICATION_NAME }
28
28
.
29
- < EuiLink
30
- color = "text"
29
+ < ExternalLink
30
+ className = { cx ( styles . link , styles . external ) }
31
31
href = { getUtmExternalLink ( 'https://redis.io/docs/latest/develop/connect/insight#connection-management' , { campaign : 'redisinsight' } ) }
32
- className = { styles . link }
33
- external = { false }
34
- target = "_blank"
35
32
>
36
33
Learn more here.
37
- </ EuiLink >
34
+ </ ExternalLink >
38
35
</ EuiText >
39
36
)
40
37
@@ -45,15 +42,12 @@ const MessageSentinel = () => (
45
42
{ ' ' }
46
43
{ APPLICATION_NAME }
47
44
.
48
- < EuiLink
49
- color = "text"
45
+ < ExternalLink
46
+ className = { cx ( styles . link , styles . external ) }
50
47
href = { getUtmExternalLink ( 'https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/' , { campaign : 'redisinsight' } ) }
51
- className = { styles . link }
52
- external = { false }
53
- target = "_blank"
54
48
>
55
49
Learn more here.
56
- </ EuiLink >
50
+ </ ExternalLink >
57
51
</ EuiText >
58
52
)
59
53
@@ -64,15 +58,12 @@ const MessageEnterpriceSoftware = () => (
64
58
{ ' ' }
65
59
{ APPLICATION_NAME }
66
60
.
67
- < EuiLink
68
- color = "text"
61
+ < ExternalLink
62
+ className = { cx ( styles . link , styles . external ) }
69
63
href = { getUtmExternalLink ( 'https://redis.io/redis-enterprise-software/overview/' , { campaign : 'redisinsight' } ) }
70
- className = { styles . link }
71
- external = { false }
72
- target = "_blank"
73
64
>
74
65
Learn more here.
75
- </ EuiLink >
66
+ </ ExternalLink >
76
67
</ EuiText >
77
68
)
78
69
0 commit comments