bug #4952 - moved the wrong password tooltip a bit up to make the field focusable
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
4a1c8e11a3
commit
81dbc162b7
|
@ -144,3 +144,7 @@
|
||||||
|
|
||||||
(def fee-buttons
|
(def fee-buttons
|
||||||
{:background-color colors/blue})
|
{:background-color colors/blue})
|
||||||
|
|
||||||
|
(def password-error-tooltip
|
||||||
|
{:bottom-value 15
|
||||||
|
:color colors/red-light})
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
opacity-value (animation/create-value 0)]
|
opacity-value (animation/create-value 0)]
|
||||||
{:component-did-mount #(send.animations/animate-sign-panel opacity-value bottom-value)}
|
{:component-did-mount #(send.animations/animate-sign-panel opacity-value bottom-value)}
|
||||||
[react/animated-view {:style (styles/animated-sign-panel bottom-value)}
|
[react/animated-view {:style (styles/animated-sign-panel bottom-value)}
|
||||||
|
(when wrong-password?
|
||||||
|
[tooltip/tooltip (i18n/label :t/wrong-password) styles/password-error-tooltip])
|
||||||
[react/animated-view {:style (styles/sign-panel opacity-value)}
|
[react/animated-view {:style (styles/sign-panel opacity-value)}
|
||||||
[react/view styles/spinner-container
|
[react/view styles/spinner-container
|
||||||
;;NOTE(goranjovic) - android build doesn't seem to react on change in `:animating` property, so
|
;;NOTE(goranjovic) - android build doesn't seem to react on change in `:animating` property, so
|
||||||
|
@ -54,9 +56,7 @@
|
||||||
:on-change-text #(re-frame/dispatch [:wallet.send/set-password (security/mask-data %)])
|
:on-change-text #(re-frame/dispatch [:wallet.send/set-password (security/mask-data %)])
|
||||||
:style styles/password
|
:style styles/password
|
||||||
:accessibility-label :enter-password-input
|
:accessibility-label :enter-password-input
|
||||||
:auto-capitalize :none}]
|
:auto-capitalize :none}]]]]))
|
||||||
(when wrong-password?
|
|
||||||
[tooltip/tooltip (i18n/label :t/wrong-password)])]]]))
|
|
||||||
|
|
||||||
;; "Cancel" and "Sign Transaction >" buttons, signing with password
|
;; "Cancel" and "Sign Transaction >" buttons, signing with password
|
||||||
(defview signing-buttons [spinning? cancel-handler sign-handler sign-label]
|
(defview signing-buttons [spinning? cancel-handler sign-handler sign-label]
|
||||||
|
|
Loading…
Reference in New Issue