Skip to content

Commit

Permalink
tidy: extract navigate-back dispatch function
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Apr 25, 2024
1 parent 43af11f commit 48f7c3e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

(defn navigate-back [] (rf/dispatch [:navigate-back]))

(defn view
[]
(fn []
Expand All @@ -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
Expand Down

0 comments on commit 48f7c3e

Please sign in to comment.