accessibility-labels
This commit is contained in:
parent
a79a72fccb
commit
f645d3fbb5
|
@ -64,6 +64,7 @@
|
|||
{:title :t/generate-a-new-account
|
||||
:theme :action
|
||||
:icon :main-icons/add
|
||||
:accessibility-label :add-account-sheet-generate
|
||||
:on-press #(hide-sheet-and-dispatch
|
||||
[:wallet.accounts/start-adding-new-account
|
||||
{:type :generate}])}]
|
||||
|
@ -71,6 +72,7 @@
|
|||
{:theme :action
|
||||
:title :t/add-a-watch-account
|
||||
:icon :main-icons/watch
|
||||
:accessibility-label :add-account-sheet-watch
|
||||
:on-press #(hide-sheet-and-dispatch
|
||||
[:wallet.accounts/start-adding-new-account
|
||||
{:type :watch}])}]
|
||||
|
@ -78,6 +80,7 @@
|
|||
{:title :t/enter-a-seed-phrase
|
||||
:theme :action
|
||||
:icon :main-icons/text
|
||||
:accessibility-label :add-account-sheet-seed
|
||||
:on-press #(hide-sheet-and-dispatch
|
||||
[:wallet.accounts/start-adding-new-account
|
||||
{:type :seed}])}]
|
||||
|
@ -85,6 +88,7 @@
|
|||
{:title :t/enter-a-private-key
|
||||
:theme :action
|
||||
:icon :main-icons/address
|
||||
:accessibility-label :add-account-sheet-private-key
|
||||
:on-press #(hide-sheet-and-dispatch
|
||||
[:wallet.accounts/start-adding-new-account
|
||||
{:type :key}])}]])
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
{:label (i18n/label :t/account-name)
|
||||
:auto-focus false
|
||||
:default-value (:name account)
|
||||
:accessibility-label :add-account-enter-account-name
|
||||
:placeholder (i18n/label :t/account-name)
|
||||
:on-change-text #(re-frame/dispatch [:set-in [:add-account :account :name] %])}]
|
||||
[react/text {:style {:margin-top 30}} (i18n/label :t/account-color)]
|
||||
|
@ -76,6 +77,7 @@
|
|||
:auto-focus false
|
||||
:default-value scanned-address
|
||||
:placeholder (i18n/label :t/enter-address)
|
||||
:accessibility-label :add-account-enter-watch-address
|
||||
:on-change-text #(re-frame/dispatch [:set-in [:add-account :address] %])}]
|
||||
[text-input/text-input-with-label
|
||||
{:label (i18n/label :t/password)
|
||||
|
@ -84,6 +86,7 @@
|
|||
:placeholder (i18n/label :t/enter-your-password)
|
||||
:secure-text-entry true
|
||||
:text-content-type :none
|
||||
:accessibility-label :add-account-enter-password
|
||||
:error (when password-error (i18n/label :t/add-account-incorrect-password))
|
||||
:on-change-text #(do
|
||||
(re-frame/dispatch [:set-in [:add-account :password-error] nil])
|
||||
|
@ -101,6 +104,7 @@
|
|||
{:flex 1})
|
||||
:height 95
|
||||
:error account-error
|
||||
:accessibility-label :add-account-enter-seed
|
||||
:on-change-text
|
||||
#(do
|
||||
(re-frame/dispatch [:set-in [:add-account :account-error] nil])
|
||||
|
@ -115,6 +119,7 @@
|
|||
:keyboard-type "visible-password"
|
||||
:error account-error
|
||||
:secure-text-entry true
|
||||
:accessibility-label :add-account-enter-private-key
|
||||
:text-content-type :none
|
||||
:on-change-text
|
||||
#(do
|
||||
|
@ -136,6 +141,7 @@
|
|||
:right
|
||||
{:type :next
|
||||
:label :t/add-account
|
||||
:accessibility-label :add-account-add-account-button
|
||||
:on-press #(re-frame/dispatch [:wallet.accounts/add-new-account
|
||||
(ethereum/sha3 @entered-password)])
|
||||
:disabled? (or add-account-disabled?
|
||||
|
|
Loading…
Reference in New Issue