Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Dec 12, 2023
1 parent 89c5d3f commit 10f0af8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .clj-kondo/rewrite-clj/rewrite-clj/config.edn
Original file line number Diff line number Diff line change
@@ -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/->>}}
2 changes: 1 addition & 1 deletion src/react_native/share.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
13 changes: 7 additions & 6 deletions src/status_im2/contexts/wallet/account/tabs/about/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))}]]]))

Expand Down

0 comments on commit 10f0af8

Please sign in to comment.