Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed May 11, 2024
1 parent c217272 commit ecf9806
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/quo/components/list_items/saved_address/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
:ens (:ens user-props)
:address (:address user-props)
:customization-color (or (:customization-color user-props) :blue)
:chain-color-map chain-color-map}]
:chain-color-map (when chains chain-color-map)}]
(when on-options-press
[rn/pressable
{:accessibility-label :options-button
Expand Down
14 changes: 7 additions & 7 deletions src/status_im/contexts/settings/wallet/saved_addresses/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@
{:icon :i/arrow-up
:label (i18n/label :t/send-to-user {:user account-name})
:on-press not-implemented/alert
:accessibility-label :manage-notifications})
:accessibility-label :send-to-user})
(when config/show-not-implemented-features?
{:icon :i/link
:right-icon :i/external
:label (i18n/label :t/view-address-on-website {:website "Etherscan"})
:on-press not-implemented/alert
:accessibility-label :manage-notifications})
:accessibility-label :view-address-on-etherscan})
(when config/show-not-implemented-features?
{:icon :i/link
:right-icon :i/external
:label (i18n/label :t/view-address-on-website {:website "Optimistic"})
:on-press not-implemented/alert
:accessibility-label :manage-notifications})
:accessibility-label :view-address-on-optimistic})
{:icon :i/share
:on-press #(rf/dispatch
[:open-share
Expand All @@ -68,24 +68,24 @@
:message address
:isNewTask true})}])
:label (i18n/label :t/share-address)
:accessibility-label :manage-notifications}
:accessibility-label :share-saved-address}
{:icon :i/qr-code
:label (i18n/label :t/show-address-qr)
:on-press (fn []
(rf/dispatch [:wallet/set-current-viewing-account address])
(rf/dispatch [:open-modal :screen/wallet.share-address {:status :share}]))
:accessibility-label :manage-notifications}
:accessibility-label :show-address-qr-code}
(when config/show-not-implemented-features?
{:icon :i/edit
:label (i18n/label :t/edit-account)
:on-press #(rf/dispatch [:navigate-to :screen/wallet.edit-account])
:accessibility-label :manage-notifications})
:accessibility-label :edit-saved-address})
(when config/show-not-implemented-features?
{:icon :i/delete
:label (i18n/label :t/remove-account)
:on-press not-implemented/alert
:danger? true
:accessibility-label :manage-notifications
:accessibility-label :remove-saved-address
:add-divider? true})])

(defn- sample-options
Expand Down
1 change: 1 addition & 0 deletions src/status_im/subs/wallet/saved_addresses.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
(->> saved-addresses
vals
flatten
(sort-by :name)
(group-by #(string/upper-case (first (:name %))))
(map (fn [[k v]]
{:title k
Expand Down

0 comments on commit ecf9806

Please sign in to comment.