Skip to content

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Son89 committed Dec 6, 2023
1 parent 5aa7e6a commit 74cb6c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/status_im2/contexts/wallet/send/select_address/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

(def ^:private tabs-data
[{:id :tab/recent :label (i18n/label :t/recent) :accessibility-label :recent-tab}
{:id :tab/saved :label (i18n/label :t/saved) :accessibility-label :saved-tab}
{:id :tab/contacts :label (i18n/label :t/contacts) :accessibility-label :contacts-tab}
{:id :tab/my-accounts :label (i18n/label :t/my-accounts) :accessibility-label :my-accounts-tab}])

(defn- address-input
[input-value input-focused?]
(fn []
Expand Down Expand Up @@ -111,7 +117,7 @@
input-value (reagent/atom "")
input-focused? (reagent/atom false)]
(fn []
(let [selected-tab (or (rf/sub [:wallet/send-tab]) (:id (first tabs/data)))
(let [selected-tab (or (rf/sub [:wallet/send-tab]) (:id (first tabs-data)))
valid-ens-or-address? (boolean (rf/sub [:wallet/valid-ens-or-address?]))]
[rn/scroll-view
{:content-container-style (style/container margin-top)
Expand Down Expand Up @@ -149,7 +155,7 @@
:container-style style/tabs-content
:size 32
:default-active selected-tab
:data tabs/data
:data tabs-data
:scrollable? true
:scroll-on-press? true
:on-change on-change-tab}]
Expand Down

0 comments on commit 74cb6c8

Please sign in to comment.