From a9c791505443e94d9fe10083c065e59ecfb849df Mon Sep 17 00:00:00 2001 From: ibrkhalil Date: Wed, 24 Apr 2024 17:43:36 +0200 Subject: [PATCH] Add saved address button --- .../contexts/settings/wallet/saved_addresses/view.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/status_im/contexts/settings/wallet/saved_addresses/view.cljs b/src/status_im/contexts/settings/wallet/saved_addresses/view.cljs index 6214d07a61..cf6c168a29 100644 --- a/src/status_im/contexts/settings/wallet/saved_addresses/view.cljs +++ b/src/status_im/contexts/settings/wallet/saved_addresses/view.cljs @@ -34,7 +34,9 @@ (let [inset-top (safe-area/get-top) customization-color (rf/sub [:profile/customization-color]) saved-addresses (rf/sub [:wallet/saved-addresses]) - navigate-back (rn/use-callback #(rf/dispatch [:navigate-back]))] + navigate-back (rn/use-callback #(rf/dispatch [:navigate-back])) + add-saved-address (rn/use-callback + #(rf/dispatch [:open-modal :screen/wallet.save-address]))] (rn/use-mount #(rf/dispatch [:wallet/get-saved-addresses])) [quo/overlay {:type :shell @@ -48,6 +50,7 @@ [quo/standard-title {:title (i18n/label :t/saved-addresses) :accessibility-label :saved-addresses-header + :on-press add-saved-address :right :action :customization-color customization-color :icon :i/add}]] @@ -60,7 +63,7 @@ :data items}) (sort (group-by #(string/upper-case (first (:name %))) saved-addresses))) :render-section-header-fn (fn [{:keys [title]}] - [quo/divider-label {:container-style {:margin-top 12 + [quo/divider-label {:container-style {:margin-top 12 :border-top-color colors/white-opa-5}} title]) :render-section-footer-fn (fn []