This commit is contained in:
ibrkhalil 2024-05-07 20:48:02 +03:00
parent fc433a2c49
commit 217f9ba871
No known key found for this signature in database
GPG Key ID: 4DC01DE789FD7BD3
1 changed files with 8 additions and 5 deletions

View File

@ -125,23 +125,26 @@
:address address :address address
:customization-color (keyword colorId)}}]) :customization-color (keyword colorId)}}])
(defn header (defn- header
[{:keys [title]}] [{:keys [title]}]
[quo/divider-label [quo/divider-label
{:container-style {:border-top-color colors/white-opa-5 {:container-style {:border-top-color colors/white-opa-5
:margin-top 16}} :margin-top 16}}
title]) title])
(defn footer (defn- footer
[] []
[rn/view {:height 8}]) [rn/view {:height 8}])
(defn view (defn- navigate-back
[]
(rf/dispatch [:navigate-back]))
(defn- view
[] []
(let [inset-top (safe-area/get-top) (let [inset-top (safe-area/get-top)
customization-color (rf/sub [:profile/customization-color]) customization-color (rf/sub [:profile/customization-color])
saved-addresses (rf/sub [:wallet/grouped-saved-addresses]) saved-addresses (rf/sub [:wallet/grouped-saved-addresses])]
navigate-back (rn/use-callback #(rf/dispatch [:navigate-back]))]
(rn/use-effect (rn/use-effect
(fn [] (fn []
(rf/dispatch [:wallet/get-saved-addresses]))) (rf/dispatch [:wallet/get-saved-addresses])))