Skip to content

Commit

Permalink
feat: standard_auth blur prop
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx committed Dec 12, 2023
1 parent 50dcd11 commit e7ecf7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand All @@ -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
Expand All @@ -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?
Expand Down
1 change: 1 addition & 0 deletions src/status_im2/contexts/profile/profiles/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7ecf7d

Please sign in to comment.