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