From 4438ca2a6341dca876272ab5ba33ff8cfd95e830 Mon Sep 17 00:00:00 2001 From: Jeroen Reumkens Date: Mon, 3 Oct 2022 21:52:57 +0200 Subject: [PATCH] Improve password peek positioning accross app and website. (#4810) --- packages/ui/v2/core/form/fields.tsx | 49 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/packages/ui/v2/core/form/fields.tsx b/packages/ui/v2/core/form/fields.tsx index 0c2d9c6914..dc8fb3d8b7 100644 --- a/packages/ui/v2/core/form/fields.tsx +++ b/packages/ui/v2/core/form/fields.tsx @@ -202,12 +202,12 @@ const InputField = forwardRef(function InputF {addOnLeading || addOnSuffix ? (
(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 ( -
+
+ + + } /> - - {/* - - */}
); });