From 4c4b5e8c64d1a79b42ee8b86397d163070975ec0 Mon Sep 17 00:00:00 2001 From: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Date: Sun, 23 Feb 2025 17:27:31 +0100 Subject: [PATCH] fix(SSHTunnelForm): make the password tooltip visible (#32356) --- .../src/components/Form/LabeledErrorBoundInput.tsx | 3 ++- .../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 bb05168078008..c669c1d2d1872 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 549919ffe3cd5..907fe3c9a0532 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 ? ( - + ) : ( - + ) } @@ -203,11 +203,11 @@ const SSHTunnelForm = ({ iconRender={visible => visible ? ( - + ) : ( - + ) }