Remove eye for todays release (#4802)

This commit is contained in:
Alex van Andel
2022-10-03 17:08:17 +01:00
committed by GitHub
parent f3e2cf5075
commit 3752ac767a
+6 -6
View File
@@ -250,25 +250,25 @@ export const PasswordField = forwardRef<HTMLInputElement, InputFieldProps>(funct
props,
ref
) {
const { t } = useLocale();
/*const { t } = useLocale();
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
const toggleIsPasswordVisible = useCallback(
() => setIsPasswordVisible(!isPasswordVisible),
[isPasswordVisible, setIsPasswordVisible]
);
const textLabel = isPasswordVisible ? t("hide_password") : t("show_password");
*/
return (
<div className="relative">
<InputField
type={isPasswordVisible ? "text" : "password"}
placeholder={isPasswordVisible ? "0hMy4P4ssw0rd" : "•••••••••••••"}
type={/* isPasswordVisible ? "text" : */ "password"}
placeholder={/* isPasswordVisible ? "0hMy4P4ssw0rd" : */ "•••••••••••••"}
ref={ref}
{...props}
className={classNames("mb-0 pr-10", props.className)}
/>
<Tooltip content={textLabel}>
{/*<Tooltip content={textLabel}>
<button
className={classNames(
"absolute right-3 h-9 text-gray-900",
@@ -283,7 +283,7 @@ export const PasswordField = forwardRef<HTMLInputElement, InputFieldProps>(funct
)}
<span className="sr-only">{textLabel}</span>
</button>
</Tooltip>
</Tooltip>*/}
</div>
);
});