From 217f9ba8711aba80953032b1e4126e32830c3355 Mon Sep 17 00:00:00 2001 From: ibrkhalil Date: Tue, 7 May 2024 20:48:02 +0300 Subject: [PATCH] clean --- .../settings/wallet/saved_addresses/view.cljs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 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 7a3b2bb8ed..0dade92cdc 100644 --- a/src/status_im/contexts/settings/wallet/saved_addresses/view.cljs +++ b/src/status_im/contexts/settings/wallet/saved_addresses/view.cljs @@ -125,23 +125,26 @@ :address address :customization-color (keyword colorId)}}]) -(defn header +(defn- header [{:keys [title]}] [quo/divider-label {:container-style {:border-top-color colors/white-opa-5 :margin-top 16}} title]) -(defn footer +(defn- footer [] [rn/view {:height 8}]) -(defn view +(defn- navigate-back + [] + (rf/dispatch [:navigate-back])) + +(defn- view [] (let [inset-top (safe-area/get-top) customization-color (rf/sub [:profile/customization-color]) - saved-addresses (rf/sub [:wallet/grouped-saved-addresses]) - navigate-back (rn/use-callback #(rf/dispatch [:navigate-back]))] + saved-addresses (rf/sub [:wallet/grouped-saved-addresses])] (rn/use-effect (fn [] (rf/dispatch [:wallet/get-saved-addresses])))