From e7ecf7d1f7c60104b2157192a0139f5a2c4b0a0f Mon Sep 17 00:00:00 2001 From: Lungu Cristian Date: Tue, 12 Dec 2023 11:58:37 +0200 Subject: [PATCH] feat: standard_auth blur prop --- .../common/standard_authentication/password_input/view.cljs | 6 +++--- src/status_im2/contexts/profile/profiles/view.cljs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/status_im2/common/standard_authentication/password_input/view.cljs b/src/status_im2/common/standard_authentication/password_input/view.cljs index 14d9730e594..2d163e8bd85 100644 --- a/src/status_im2/common/standard_authentication/password_input/view.cljs +++ b/src/status_im2/common/standard_authentication/password_input/view.cljs @@ -27,7 +27,7 @@ (rf/dispatch [:set-in [:profile/login :error] ""])) (defn- view-internal - [{:keys [default-password theme shell? on-press-biometrics]}] + [{:keys [default-password theme shell? on-press-biometrics blur?]}] (let [{:keys [error processing]} (rf/sub [:profile/login]) error-message (get-error-message error) error? (boolean (seq error-message))] @@ -36,7 +36,7 @@ [quo/input {:container-style {:flex 1} :type :password - :blur? true + :blur? blur? :disabled? processing :placeholder (i18n/label :t/type-your-password) :auto-focus true @@ -49,7 +49,7 @@ {:container-style style/auth-button :on-press on-press-biometrics :icon-only? true - :background :blur + :background (when blur? :blur) :type :outline} :i/face-id])] (when error? diff --git a/src/status_im2/contexts/profile/profiles/view.cljs b/src/status_im2/contexts/profile/profiles/view.cljs index 5c2df1551c3..b43832f3ba2 100644 --- a/src/status_im2/contexts/profile/profiles/view.cljs +++ b/src/status_im2/contexts/profile/profiles/view.cljs @@ -210,6 +210,7 @@ :card-style style/login-profile-card}] [standard-authentication/password-input {:shell? true + :blur? true :on-press-biometrics (when (= auth-method constants/auth-method-biometric) (fn [] (rf/dispatch [:biometric/authenticate