From 8fb2d3e6e8f70b603deb534e259a469d71fa346c Mon Sep 17 00:00:00 2001 From: Omar Basem Date: Mon, 11 Dec 2023 08:39:50 +0400 Subject: [PATCH] review --- .clj-kondo/rewrite-clj/rewrite-clj/config.edn | 5 +++++ src/react_native/share.cljs | 2 +- .../contexts/wallet/account/tabs/about/view.cljs | 13 +++++++------ 3 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 .clj-kondo/rewrite-clj/rewrite-clj/config.edn diff --git a/.clj-kondo/rewrite-clj/rewrite-clj/config.edn b/.clj-kondo/rewrite-clj/rewrite-clj/config.edn new file mode 100644 index 000000000000..19ecae96a0ff --- /dev/null +++ b/.clj-kondo/rewrite-clj/rewrite-clj/config.edn @@ -0,0 +1,5 @@ +{:lint-as + {rewrite-clj.zip/subedit-> clojure.core/-> + rewrite-clj.zip/subedit->> clojure.core/->> + rewrite-clj.zip/edit-> clojure.core/-> + rewrite-clj.zip/edit->> clojure.core/->>}} diff --git a/src/react_native/share.cljs b/src/react_native/share.cljs index 1e82f2b26005..2afb5c430c78 100644 --- a/src/react_native/share.cljs +++ b/src/react_native/share.cljs @@ -4,7 +4,7 @@ (defn open ([options] - (open options nil nil)) + (open options #() #())) ([options on-success on-error] (-> ^js react-native-share (.open (clj->js options)) diff --git a/src/status_im2/contexts/wallet/account/tabs/about/view.cljs b/src/status_im2/contexts/wallet/account/tabs/about/view.cljs index d070c625493b..1bb05ce9e9c6 100644 --- a/src/status_im2/contexts/wallet/account/tabs/about/view.cljs +++ b/src/status_im2/contexts/wallet/account/tabs/about/view.cljs @@ -11,8 +11,8 @@ (defn about-options [] - (let [{:keys [address name]} (rf/sub [:wallet/current-viewing-account]) - title (str name " address")] + (let [{:keys [address] :as account} (rf/sub [:wallet/current-viewing-account]) + share-title (str (:name account) " " (i18n/label :t/address))] [quo/action-drawer [[{:icon :i/link :accessibility-label :view-on-eth @@ -43,10 +43,11 @@ {:activityItemSources [{:placeholderItem {:type "text" :content address} :item {:default {:type "text" - :content address}} - :linkMetadata {:title title}}]} - {:title title - :subject title + :content + address}} + :linkMetadata {:title share-title}}]} + {:title share-title + :subject share-title :message address})) 600))}]]]))