Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayesivan committed Dec 8, 2023
1 parent f9d1f4f commit 3d33e48
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[quo.core :as quo]
[react-native.core :as rn]
[react-native.gesture :as gesture]
[status-im2.common.not-implemented :as not-implemented]
[status-im2.common.password-authentication.view :as password-authentication]
[status-im2.contexts.communities.actions.accounts-selection.style :as style]
[status-im2.contexts.communities.actions.community-rules.view :as community-rules]
Expand Down Expand Up @@ -36,12 +37,10 @@
[]
(let [{id :community-id} (rf/sub [:get-screen-params])
{:keys [name color images]} (rf/sub [:communities/community id])
{:keys [accounts]} (rf/sub [:wallet])
account-list (->> accounts
accounts (->> (rf/sub [:wallet])
:accounts
vals
(map #(assoc % :customization-color (:color %)))
vec)]
(tap> account-list)
(map #(assoc % :customization-color (:color %))))]
[rn/view {:style style/container}
[quo/page-nav
{:text-align :left
Expand All @@ -63,23 +62,23 @@
[quo/category
{:list-type :settings
:data [{:title (i18n/label :t/join-as-a-member)
:on-press #(print "Show All Addresses Sheet")
:on-press #(not-implemented/alert)
:description :text
:action :arrow
:label :preview
:label-props {:type
:accounts
:data account-list}
:data accounts}
:description-props {:text (i18n/label :t/all-addresses)}}
{:title (i18n/label :t/for-airdrops)
:on-press #(print "Show AirDrop Address Sheet")
:on-press #(not-implemented/alert)
:description :text
:action :arrow
:label :preview
:label-props {:type
:accounts
:data (subvec account-list 0 1)}
:description-props {:text (:name (account-list 0))}}]}]
:data (take 1 accounts)}
:description-props {:text (-> accounts first :name)}}]}]

[quo/text
{:style style/section-title
Expand Down

0 comments on commit 3d33e48

Please sign in to comment.