Skip to content

Commit

Permalink
fix(SSHTunnelForm): make the password tooltip visible (apache#32356)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnxDev authored Feb 23, 2025
1 parent 2c37ddb commit 4c4b5e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 '.';

Expand Down Expand Up @@ -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>
)
}
Expand Down Expand Up @@ -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>
)
}
Expand Down

0 comments on commit 4c4b5e8

Please sign in to comment.