Wallet: network preferences text description (#18319)

Wallet: network preferences text description
This commit is contained in:
Omar Basem 2024-01-02 13:45:21 +04:00 committed by GitHub
parent 4a9ca80bc2
commit 1ce76a4af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 14 deletions

View File

@ -28,7 +28,7 @@
:on-change on-change}})
(defn- view-internal
[{:keys [selected-networks]}]
[{:keys [selected-networks watch-only?]}]
(let [state (reagent/atom :default)
{:keys [color address
network-preferences-names]} (rf/sub [:wallet/current-viewing-account])
@ -63,7 +63,9 @@
:blur-radius 25}])
[quo/drawer-top
{: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?}]
[quo/data-item
{:status :default

View File

@ -49,7 +49,8 @@
:updated-key :name
:new-value @edited-account-name}))]
(fn []
(let [{:keys [name emoji address color] :as account} (rf/sub [:wallet/current-viewing-account])
(let [{:keys [name emoji address color watch-only?]
:as account} (rf/sub [:wallet/current-viewing-account])
network-details (rf/sub [:wallet/network-preference-details])
account-name (or @edited-account-name name)
button-disabled? (or (nil? @edited-account-name)
@ -95,5 +96,6 @@
(save-account
{:account account
:updated-key :prod-preferred-chain-ids
:new-value chain-ids}))}])}]))
:new-value chain-ids}))
:watch-only? watch-only?}])}]))
:container-style style/data-item}]]))))

View File

@ -2378,7 +2378,8 @@
"account-info": "Account info",
"account-name-input-placeholder": "Account name",
"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",
"manage-tokens": "Manage tokens",
"edit-derivation-path": "Edit derivation path",