Skip to content

Commit 3141817

Browse files
authored
Merge pull request #3632 from RedisInsight/fe/feature/RI-5944
#RI-5944 - remove tooltip
2 parents 1c83e9c + 053bdfb commit 3141817

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

redisinsight/ui/src/pages/rdi/home/connection-form/ConnectionForm.spec.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,6 @@ describe('ConnectionForm', () => {
7272
expect(screen.getByTestId('connection-form-url-input')).toBeDisabled()
7373
})
7474

75-
it('should show url tooltip when url input is not disabled', async () => {
76-
render(<ConnectionForm {...mockedProps} />)
77-
78-
fireEvent.mouseOver(screen.getByTestId('connection-form-url-icon'))
79-
80-
const tooltip = await screen.findByTestId('connection-form-url-tooltip')
81-
82-
expect(tooltip).toBeInTheDocument()
83-
})
84-
8575
it('should show validation tooltip when submit button is disabled', async () => {
8676
render(<ConnectionForm {...mockedProps} />)
8777

redisinsight/ui/src/pages/rdi/home/connection-form/ConnectionForm.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import {
66
EuiFlexItem,
77
EuiForm,
88
EuiFormRow,
9-
EuiIcon,
109
EuiTitle,
11-
EuiToolTip
1210
} from '@elastic/eui'
1311
import { Field, FieldInputProps, FieldMetaProps, Form, Formik, FormikErrors, FormikHelpers } from 'formik'
1412
import React, { useEffect, useState } from 'react'
@@ -43,33 +41,6 @@ const getInitialValues = (values: RdiInstance | null): ConnectionFormValues => (
4341
password: values ? null : ''
4442
})
4543

46-
const UrlTooltip = () => (
47-
<EuiToolTip
48-
data-testid="connection-form-url-tooltip"
49-
title={(
50-
<div>
51-
<p>
52-
<b>Pasting a connection URL auto fills the instance details.</b>
53-
</p>
54-
<p style={{ margin: 0, paddingTop: '10px' }}>The following connection URLs are supported:</p>
55-
</div>
56-
)}
57-
className={styles.urlTooltip}
58-
anchorClassName="inputAppendIcon"
59-
position="right"
60-
content={(
61-
<ul>
62-
<li>
63-
<span />
64-
TBD
65-
</li>
66-
</ul>
67-
)}
68-
>
69-
<EuiIcon data-testid="connection-form-url-icon" type="iInCircle" style={{ cursor: 'pointer' }} />
70-
</EuiToolTip>
71-
)
72-
7344
const ConnectionForm = (props: Props) => {
7445
const { onSubmit, onCancel, editInstance, isLoading } = props
7546

@@ -140,7 +111,6 @@ const ConnectionForm = (props: Props) => {
140111
fullWidth
141112
placeholder="Enter URL"
142113
disabled={!!editInstance}
143-
append={!editInstance ? <UrlTooltip /> : undefined}
144114
{...field}
145115
/>
146116
)}

0 commit comments

Comments
 (0)