This is an automated email from the ASF dual-hosted git repository.
enzomartellucci pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 4c4b5e8c64 fix(SSHTunnelForm): make the password tooltip visible
(#32356)
4c4b5e8c64 is described below
commit 4c4b5e8c64d1a79b42ee8b86397d163070975ec0
Author: Enzo Martellucci <[email protected]>
AuthorDate: Sun Feb 23 17:27:31 2025 +0100
fix(SSHTunnelForm): make the password tooltip visible (#32356)
---
.../src/components/Form/LabeledErrorBoundInput.tsx | 3 ++-
.../src/features/databases/DatabaseModal/SSHTunnelForm.tsx | 10 +++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx
b/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx
index bb05168078..c669c1d2d1 100644
--- a/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx
+++ b/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx
@@ -16,8 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-import { Input, Tooltip } from 'antd';
import { styled, css, SupersetTheme, t } from '@superset-ui/core';
+import { Tooltip } from 'src/components/Tooltip';
+import { Input } from 'src/components/Input';
import InfoTooltip from 'src/components/InfoTooltip';
import Icons from 'src/components/Icons';
import Button from 'src/components/Button';
diff --git
a/superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
b/superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
index 549919ffe3..907fe3c9a0 100644
--- a/superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
+++ b/superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
@@ -23,7 +23,7 @@ import { Form, FormLabel } from 'src/components/Form';
import { Radio } from 'src/components/Radio';
import { Input, TextArea } from 'src/components/Input';
import { Input as AntdInput, Tooltip } from 'antd';
-import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons';
+import Icons from 'src/components/Icons';
import { DatabaseObject, FieldPropTypes } from '../types';
import { AuthType } from '.';
@@ -155,11 +155,11 @@ const SSHTunnelForm = ({
iconRender={visible =>
visible ? (
<Tooltip title="Hide password.">
- <EyeInvisibleOutlined />
+ <Icons.EyeInvisibleOutlined />
</Tooltip>
) : (
<Tooltip title="Show password.">
- <EyeOutlined />
+ <Icons.EyeOutlined />
</Tooltip>
)
}
@@ -203,11 +203,11 @@ const SSHTunnelForm = ({
iconRender={visible =>
visible ? (
<Tooltip title="Hide password.">
- <EyeInvisibleOutlined />
+ <Icons.EyeInvisibleOutlined />
</Tooltip>
) : (
<Tooltip title="Show password.">
- <EyeOutlined />
+ <Icons.EyeOutlined />
</Tooltip>
)
}