From 48f7c3ea42496daa90b01b00d1d36958ea1a76c8 Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Thu, 25 Apr 2024 13:20:08 +0200 Subject: [PATCH] tidy: extract navigate-back dispatch function --- .../communities/actions/share_community_channel/view.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/contexts/communities/actions/share_community_channel/view.cljs b/src/status_im/contexts/communities/actions/share_community_channel/view.cljs index 36e64156cf0f..e885050a5dce 100644 --- a/src/status_im/contexts/communities/actions/share_community_channel/view.cljs +++ b/src/status_im/contexts/communities/actions/share_community_channel/view.cljs @@ -8,6 +8,8 @@ [utils.i18n :as i18n] [utils.re-frame :as rf])) +(defn navigate-back [] (rf/dispatch [:navigate-back])) + (defn view [] (fn [] @@ -27,7 +29,7 @@ :key :share-community} [quo/page-nav {:icon-name :i/close - :on-press #(rf/dispatch [:navigate-back]) + :on-press navigate-back :background :blur :accessibility-label :top-bar}] [quo/text-combinations