Skip to content

Commit 44161f4

Browse files
committed
Change the messages to use Link instead of ExternalLink
1 parent 3083c59 commit 44161f4

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

redisinsight/ui/src/pages/home/components/form/Messages.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
import React from 'react'
2-
import cx from 'classnames'
32
import { APPLICATION_NAME } from 'uiSrc/constants'
43
import { Text } from 'uiSrc/components/base/text'
54

65
import { getUtmExternalLink } from 'uiSrc/utils/links'
76
import { Link } from 'uiSrc/components/base/link/Link'
87

9-
import { ExternalLink } from 'uiSrc/components'
10-
import styles from '../styles.module.scss'
11-
128
const MessageCloudApiKeys = () => (
13-
<Text data-testid="summary">
9+
<Text data-testid="summary" color="primary">
1410
{
1511
'Enter Redis Cloud API keys to discover and add databases. API keys can be enabled by following the steps mentioned in the '
1612
}
1713
<Link
18-
variant="inline"
1914
external
15+
variant="inline"
2016
href="https://docs.redis.com/latest/rc/api/get-started/enable-the-api/"
2117
>
2218
documentation
@@ -26,52 +22,55 @@ const MessageCloudApiKeys = () => (
2622
)
2723

2824
const MessageStandalone = () => (
29-
<Text data-testid="summary">
25+
<Text data-testid="summary" color="primary">
3026
You can manually add your Redis databases. Enter host and port of your Redis
3127
database to add it to {APPLICATION_NAME}. &nbsp;
32-
<ExternalLink
33-
className={cx(styles.link, styles.external)}
28+
<Link
29+
external
30+
variant="inline"
3431
href={getUtmExternalLink(
3532
'https://redis.io/docs/latest/develop/connect/insight#connection-management',
3633
{ campaign: 'redisinsight' },
3734
)}
3835
>
3936
Learn more here.
40-
</ExternalLink>
37+
</Link>
4138
</Text>
4239
)
4340

4441
const MessageSentinel = () => (
45-
<Text data-testid="summary">
42+
<Text data-testid="summary" color="primary">
4643
You can automatically discover and add primary groups from your Redis
4744
Sentinel. Enter host and port of your Redis Sentinel to automatically
4845
discover your primary groups and add them to {APPLICATION_NAME}. &nbsp;
49-
<ExternalLink
50-
className={cx(styles.link, styles.external)}
46+
<Link
47+
external
48+
variant="inline"
5149
href={getUtmExternalLink(
5250
'https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/',
5351
{ campaign: 'redisinsight' },
5452
)}
5553
>
5654
Learn more here.
57-
</ExternalLink>
55+
</Link>
5856
</Text>
5957
)
6058

6159
const MessageEnterpriceSoftware = () => (
62-
<Text data-testid="summary">
60+
<Text data-testid="summary" color="primary">
6361
Your Redis Software databases can be automatically added. Enter the
6462
connection details of your Redis Software Cluster to automatically discover
6563
your databases and add them to {APPLICATION_NAME}. &nbsp;
66-
<ExternalLink
67-
className={cx(styles.link, styles.external)}
64+
<Link
65+
external
66+
variant="inline"
6867
href={getUtmExternalLink(
6968
'https://redis.io/redis-enterprise-software/overview/',
7069
{ campaign: 'redisinsight' },
7170
)}
7271
>
7372
Learn more here.
74-
</ExternalLink>
73+
</Link>
7574
</Text>
7675
)
7776

0 commit comments

Comments
 (0)