Skip to content

Commit

Permalink
[#15518]Show disclaimer during password creation
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentCruzer committed Apr 14, 2023
1 parent f6d74df commit adefd10
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/status_im2/contexts/onboarding/create_password/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,17 @@
(reset! show-password-validation? true))}]]

[rn/view {:style style/bottom-part}
[rn/view {:style style/disclaimer-container}
[quo/disclaimer
{:on-change #(reset! accepts-disclaimer? %)
:checked? @accepts-disclaimer?}
(i18n/label :t/password-creation-disclaimer)]]

(when (= @focused-input :password)
[help
{:validations validations
:password-strength password-strength}])

(when (= @focused-input :repeat-password)
[rn/view {:style style/disclaimer-container}
[quo/disclaimer
{:blur? true
:checked? @accepts-disclaimer?
:on-change #(reset! accepts-disclaimer? %)}
(i18n/label :t/password-creation-disclaimer)]])

[rn/view {:style style/button-container}
[quo/button
{:disabled (not meet-requirements?)
Expand Down

0 comments on commit adefd10

Please sign in to comment.