Wallet: about tab fixes (#18298)

* wallet: about tab fixes
This commit is contained in:
Omar Basem 2023-12-27 19:14:09 +04:00 committed by GitHub
parent 0a1152bcc6
commit 01e8c7e480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,7 @@
(ns status-im.contexts.wallet.account.tabs.about.view (ns status-im.contexts.wallet.account.tabs.about.view
(:require (:require
[quo.core :as quo] [quo.core :as quo]
[react-native.clipboard :as clipboard]
[react-native.core :as rn] [react-native.core :as rn]
[react-native.platform :as platform] [react-native.platform :as platform]
[react-native.share :as share] [react-native.share :as share]
@ -28,7 +29,12 @@
:right-icon :i/external} :right-icon :i/external}
{:icon :i/copy {:icon :i/copy
:accessibility-label :copy-address :accessibility-label :copy-address
:label (i18n/label :t/copy-address)} :label (i18n/label :t/copy-address)
:on-press (fn []
(clipboard/set-string address)
(rf/dispatch [:toasts/upsert
{:type :positive
:text (i18n/label :t/address-copied)}]))}
{:icon :i/qr-code {:icon :i/qr-code
:accessibility-label :show-address-qr :accessibility-label :show-address-qr
:label (i18n/label :t/show-address-qr)} :label (i18n/label :t/show-address-qr)}
@ -56,7 +62,9 @@
(let [{:keys [customization-color] :as profile} (rf/sub [:profile/profile-with-image]) (let [{:keys [customization-color] :as profile} (rf/sub [:profile/profile-with-image])
{:keys [address path watch-only?]} (rf/sub [:wallet/current-viewing-account]) {:keys [address path watch-only?]} (rf/sub [:wallet/current-viewing-account])
networks (rf/sub [:wallet/network-details])] networks (rf/sub [:wallet/network-details])]
[rn/view {:style style/about-tab} [rn/scroll-view
{:style style/about-tab
:content-container-style {:padding-bottom 20}}
[quo/data-item [quo/data-item
{:description :default {:description :default
:icon-right? true :icon-right? true