Wallet: network preferences text description (#18319)
Wallet: network preferences text description
This commit is contained in:
parent
4a9ca80bc2
commit
1ce76a4af6
|
@ -28,7 +28,7 @@
|
||||||
:on-change on-change}})
|
:on-change on-change}})
|
||||||
|
|
||||||
(defn- view-internal
|
(defn- view-internal
|
||||||
[{:keys [selected-networks]}]
|
[{:keys [selected-networks watch-only?]}]
|
||||||
(let [state (reagent/atom :default)
|
(let [state (reagent/atom :default)
|
||||||
{:keys [color address
|
{:keys [color address
|
||||||
network-preferences-names]} (rf/sub [:wallet/current-viewing-account])
|
network-preferences-names]} (rf/sub [:wallet/current-viewing-account])
|
||||||
|
@ -63,7 +63,9 @@
|
||||||
:blur-radius 25}])
|
:blur-radius 25}])
|
||||||
[quo/drawer-top
|
[quo/drawer-top
|
||||||
{:title (i18n/label :t/network-preferences)
|
{:title (i18n/label :t/network-preferences)
|
||||||
:description (i18n/label :t/network-preferences-desc)
|
:description (if watch-only?
|
||||||
|
(i18n/label :t/network-preferences-desc-1)
|
||||||
|
(i18n/label :t/network-preferences-desc-2))
|
||||||
:blur? blur?}]
|
:blur? blur?}]
|
||||||
[quo/data-item
|
[quo/data-item
|
||||||
{:status :default
|
{:status :default
|
||||||
|
|
|
@ -49,11 +49,12 @@
|
||||||
:updated-key :name
|
:updated-key :name
|
||||||
:new-value @edited-account-name}))]
|
:new-value @edited-account-name}))]
|
||||||
(fn []
|
(fn []
|
||||||
(let [{:keys [name emoji address color] :as account} (rf/sub [:wallet/current-viewing-account])
|
(let [{:keys [name emoji address color watch-only?]
|
||||||
network-details (rf/sub [:wallet/network-preference-details])
|
:as account} (rf/sub [:wallet/current-viewing-account])
|
||||||
account-name (or @edited-account-name name)
|
network-details (rf/sub [:wallet/network-preference-details])
|
||||||
button-disabled? (or (nil? @edited-account-name)
|
account-name (or @edited-account-name name)
|
||||||
(= name @edited-account-name))]
|
button-disabled? (or (nil? @edited-account-name)
|
||||||
|
(= name @edited-account-name))]
|
||||||
[create-or-edit-account/view
|
[create-or-edit-account/view
|
||||||
{:page-nav-right-side [{:icon-name :i/delete
|
{:page-nav-right-side [{:icon-name :i/delete
|
||||||
:on-press #(js/alert "Delete account: to be implemented")}]
|
:on-press #(js/alert "Delete account: to be implemented")}]
|
||||||
|
@ -90,10 +91,11 @@
|
||||||
{:content
|
{:content
|
||||||
(fn []
|
(fn []
|
||||||
[network-preferences/view
|
[network-preferences/view
|
||||||
{:on-save (fn [chain-ids]
|
{:on-save (fn [chain-ids]
|
||||||
(rf/dispatch [:hide-bottom-sheet])
|
(rf/dispatch [:hide-bottom-sheet])
|
||||||
(save-account
|
(save-account
|
||||||
{:account account
|
{:account account
|
||||||
:updated-key :prod-preferred-chain-ids
|
:updated-key :prod-preferred-chain-ids
|
||||||
:new-value chain-ids}))}])}]))
|
:new-value chain-ids}))
|
||||||
|
:watch-only? watch-only?}])}]))
|
||||||
:container-style style/data-item}]]))))
|
:container-style style/data-item}]]))))
|
||||||
|
|
|
@ -2378,7 +2378,8 @@
|
||||||
"account-info": "Account info",
|
"account-info": "Account info",
|
||||||
"account-name-input-placeholder": "Account name",
|
"account-name-input-placeholder": "Account name",
|
||||||
"network-preferences": "Network preferences",
|
"network-preferences": "Network preferences",
|
||||||
"network-preferences-desc": "Select which networks to receive funds on",
|
"network-preferences-desc-1": "Select which networks this address is happy to receive funds on",
|
||||||
|
"network-preferences-desc-2": "Select which networks to receive funds on",
|
||||||
"layer-2": "Layer 2",
|
"layer-2": "Layer 2",
|
||||||
"manage-tokens": "Manage tokens",
|
"manage-tokens": "Manage tokens",
|
||||||
"edit-derivation-path": "Edit derivation path",
|
"edit-derivation-path": "Edit derivation path",
|
||||||
|
|
Loading…
Reference in New Issue