From 74cb6c8421d381eddc58b5499f9d24d108f4aab7 Mon Sep 17 00:00:00 2001 From: Jamie Caprani Date: Wed, 6 Dec 2023 09:05:34 +0000 Subject: [PATCH] adjust --- .../contexts/wallet/send/select_address/view.cljs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/status_im2/contexts/wallet/send/select_address/view.cljs b/src/status_im2/contexts/wallet/send/select_address/view.cljs index 2538957c19c9..cfe591e91463 100644 --- a/src/status_im2/contexts/wallet/send/select_address/view.cljs +++ b/src/status_im2/contexts/wallet/send/select_address/view.cljs @@ -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 [] @@ -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) @@ -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}]